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
b2d9fbd5
Commit
b2d9fbd5
authored
Feb 24, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Mar 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Print thread names in 'info thread' listing.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
88457bf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
info.c
programs/winedbg/info.c
+9
-5
No files found.
programs/winedbg/info.c
View file @
b2d9fbd5
...
...
@@ -589,12 +589,14 @@ void info_win32_threads(void)
THREADENTRY32
entry
;
BOOL
ok
;
DWORD
lastProcessId
=
0
;
struct
dbg_process
*
p
=
NULL
;
struct
dbg_thread
*
t
=
NULL
;
entry
.
dwSize
=
sizeof
(
entry
);
ok
=
Thread32First
(
snap
,
&
entry
);
dbg_printf
(
"%-8.8s %-8.8s %s
(all id:
s are in hex)
\n
"
,
"process"
,
"tid"
,
"prio"
);
dbg_printf
(
"%-8.8s %-8.8s %s
%s (all ID
s are in hex)
\n
"
,
"process"
,
"tid"
,
"prio"
,
"name"
);
while
(
ok
)
{
if
(
entry
.
th32OwnerProcessID
!=
GetCurrentProcessId
())
...
...
@@ -605,10 +607,10 @@ void info_win32_threads(void)
*/
if
(
entry
.
th32OwnerProcessID
!=
lastProcessId
)
{
struct
dbg_process
*
p
=
dbg_get_process
(
entry
.
th32OwnerProcessID
);
PROCESSENTRY32
pcs_entry
;
const
char
*
exename
;
p
=
dbg_get_process
(
entry
.
th32OwnerProcessID
);
if
(
p
)
exename
=
dbg_W2A
(
p
->
imageName
,
-
1
);
else
if
(
get_process_name
(
entry
.
th32OwnerProcessID
,
&
pcs_entry
))
...
...
@@ -620,9 +622,11 @@ void info_win32_threads(void)
entry
.
th32OwnerProcessID
,
p
?
" (D)"
:
""
,
exename
);
lastProcessId
=
entry
.
th32OwnerProcessID
;
}
dbg_printf
(
"
\t
%08lx %4ld%s
\n
"
,
t
=
dbg_get_thread
(
p
,
entry
.
th32ThreadID
);
dbg_printf
(
"
\t
%08lx %4ld%s %s
\n
"
,
entry
.
th32ThreadID
,
entry
.
tpBasePri
,
(
entry
.
th32ThreadID
==
dbg_curr_tid
)
?
" <=="
:
""
);
(
entry
.
th32ThreadID
==
dbg_curr_tid
)
?
" <=="
:
" "
,
t
?
t
->
name
:
""
);
}
ok
=
Thread32Next
(
snap
,
&
entry
);
...
...
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