Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8a61b7c2
Commit
8a61b7c2
authored
Dec 06, 2021
by
Brendan Shanks
Committed by
Alexandre Julliard
Jun 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use +threadname channel for thread rename exceptions.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
parent
fc128f66
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
5 deletions
+24
-5
signal_arm.c
dlls/ntdll/signal_arm.c
+6
-1
signal_arm64.c
dlls/ntdll/signal_arm64.c
+6
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+6
-1
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+6
-2
No files found.
dlls/ntdll/signal_arm.c
View file @
8a61b7c2
...
...
@@ -36,6 +36,7 @@
#include "winnt.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
seh
);
WINE_DECLARE_DEBUG_CHANNEL
(
threadname
);
typedef
struct
_SCOPE_TABLE
{
...
...
@@ -476,7 +477,11 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
}
else
if
(
rec
->
ExceptionCode
==
EXCEPTION_WINE_NAME_THREAD
&&
rec
->
ExceptionInformation
[
0
]
==
0x1000
)
{
WARN
(
"Thread %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
if
((
DWORD
)
rec
->
ExceptionInformation
[
2
]
==
-
1
)
WARN_
(
threadname
)(
"Thread renamed to %s
\n
"
,
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
else
WARN_
(
threadname
)(
"Thread ID %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
}
else
if
(
rec
->
ExceptionCode
==
DBG_PRINTEXCEPTION_C
)
{
...
...
dlls/ntdll/signal_arm64.c
View file @
8a61b7c2
...
...
@@ -38,6 +38,7 @@
#include "winnt.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
seh
);
WINE_DECLARE_DEBUG_CHANNEL
(
threadname
);
typedef
struct
_SCOPE_TABLE
{
...
...
@@ -508,7 +509,11 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
}
else
if
(
rec
->
ExceptionCode
==
EXCEPTION_WINE_NAME_THREAD
&&
rec
->
ExceptionInformation
[
0
]
==
0x1000
)
{
WARN
(
"Thread %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
if
((
DWORD
)
rec
->
ExceptionInformation
[
2
]
==
-
1
)
WARN_
(
threadname
)(
"Thread renamed to %s
\n
"
,
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
else
WARN_
(
threadname
)(
"Thread ID %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
}
else
if
(
rec
->
ExceptionCode
==
DBG_PRINTEXCEPTION_C
)
{
...
...
dlls/ntdll/signal_i386.c
View file @
8a61b7c2
...
...
@@ -35,6 +35,7 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
seh
);
WINE_DECLARE_DEBUG_CHANNEL
(
threadname
);
struct
x86_thread_data
{
...
...
@@ -194,7 +195,11 @@ NTSTATUS WINAPI dispatch_exception( EXCEPTION_RECORD *rec, CONTEXT *context )
}
else
if
(
rec
->
ExceptionCode
==
EXCEPTION_WINE_NAME_THREAD
&&
rec
->
ExceptionInformation
[
0
]
==
0x1000
)
{
WARN
(
"Thread %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
if
((
DWORD
)
rec
->
ExceptionInformation
[
2
]
==
-
1
)
WARN_
(
threadname
)(
"Thread renamed to %s
\n
"
,
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
else
WARN_
(
threadname
)(
"Thread ID %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
}
else
if
(
rec
->
ExceptionCode
==
DBG_PRINTEXCEPTION_C
)
{
...
...
dlls/ntdll/signal_x86_64.c
View file @
8a61b7c2
...
...
@@ -36,6 +36,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
unwind
);
WINE_DECLARE_DEBUG_CHANNEL
(
seh
);
WINE_DECLARE_DEBUG_CHANNEL
(
threadname
);
typedef
struct
_SCOPE_TABLE
{
...
...
@@ -525,8 +526,11 @@ NTSTATUS WINAPI dispatch_exception( EXCEPTION_RECORD *rec, CONTEXT *context )
}
else
if
(
rec
->
ExceptionCode
==
EXCEPTION_WINE_NAME_THREAD
&&
rec
->
ExceptionInformation
[
0
]
==
0x1000
)
{
WARN_
(
seh
)(
"Thread %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
if
((
DWORD
)
rec
->
ExceptionInformation
[
2
]
==
-
1
)
WARN_
(
threadname
)(
"Thread renamed to %s
\n
"
,
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
else
WARN_
(
threadname
)(
"Thread ID %04x renamed to %s
\n
"
,
(
DWORD
)
rec
->
ExceptionInformation
[
2
],
debugstr_a
((
char
*
)
rec
->
ExceptionInformation
[
1
])
);
}
else
if
(
rec
->
ExceptionCode
==
DBG_PRINTEXCEPTION_C
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment