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
1d53204e
Commit
1d53204e
authored
Jan 06, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Print all pid and tid with 4 hex characters.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
edb38d15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
gdbproxy.c
programs/winedbg/gdbproxy.c
+13
-13
No files found.
programs/winedbg/gdbproxy.c
View file @
1d53204e
...
...
@@ -587,7 +587,7 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load
return
TRUE
;
case
UNLOAD_DLL_DEBUG_EVENT
:
fprintf
(
stderr
,
"%0
8lx:%08
lx: unload DLL @%p
\n
"
,
fprintf
(
stderr
,
"%0
4lx:%04
lx: unload DLL @%p
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
SymUnloadModule
(
gdbctx
->
process
->
handle
,
(
DWORD_PTR
)
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
...
...
@@ -596,16 +596,16 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load
return
TRUE
;
case
EXCEPTION_DEBUG_EVENT
:
TRACE
(
"%0
8lx:%08
lx: exception code=0x%08lx
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
Exception
.
ExceptionRecord
.
ExceptionCode
);
TRACE
(
"%0
4lx:%04
lx: exception code=0x%08lx
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
Exception
.
ExceptionRecord
.
ExceptionCode
);
if
(
handle_exception
(
gdbctx
,
&
de
->
u
.
Exception
))
return
TRUE
;
break
;
case
CREATE_THREAD_DEBUG_EVENT
:
fprintf
(
stderr
,
"%0
8lx:%08
lx: create thread D @%p
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
CreateThread
.
lpStartAddress
);
fprintf
(
stderr
,
"%0
4lx:%04
lx: create thread D @%p
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
CreateThread
.
lpStartAddress
);
dbg_add_thread
(
gdbctx
->
process
,
de
->
dwThreadId
,
...
...
@@ -614,14 +614,14 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load
return
TRUE
;
case
EXIT_THREAD_DEBUG_EVENT
:
fprintf
(
stderr
,
"%0
8lx:%08
lx: exit thread (%lu)
\n
"
,
fprintf
(
stderr
,
"%0
4lx:%04
lx: exit thread (%lu)
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
ExitThread
.
dwExitCode
);
if
((
thread
=
dbg_get_thread
(
gdbctx
->
process
,
de
->
dwThreadId
)))
dbg_del_thread
(
thread
);
return
TRUE
;
case
EXIT_PROCESS_DEBUG_EVENT
:
fprintf
(
stderr
,
"%0
8lx:%08
lx: exit process (%lu)
\n
"
,
fprintf
(
stderr
,
"%0
4lx:%04
lx: exit process (%lu)
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
ExitProcess
.
dwExitCode
);
dbg_del_process
(
gdbctx
->
process
);
...
...
@@ -632,18 +632,18 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load
memory_get_string
(
gdbctx
->
process
,
de
->
u
.
DebugString
.
lpDebugStringData
,
TRUE
,
de
->
u
.
DebugString
.
fUnicode
,
u
.
bufferA
,
sizeof
(
u
.
bufferA
));
fprintf
(
stderr
,
"%0
8lx:%08
lx: output debug string (%s)
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
debugstr_a
(
u
.
bufferA
));
fprintf
(
stderr
,
"%0
4lx:%04
lx: output debug string (%s)
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
debugstr_a
(
u
.
bufferA
));
return
TRUE
;
case
RIP_EVENT
:
fprintf
(
stderr
,
"%0
8lx:%08
lx: rip error=%lu type=%lu
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
RipInfo
.
dwError
,
de
->
u
.
RipInfo
.
dwType
);
fprintf
(
stderr
,
"%0
4lx:%04
lx: rip error=%lu type=%lu
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
RipInfo
.
dwError
,
de
->
u
.
RipInfo
.
dwType
);
return
TRUE
;
default:
FIXME
(
"%0
8lx:%08
lx: unknown event (%lu)
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
dwDebugEventCode
);
FIXME
(
"%0
4lx:%04
lx: unknown event (%lu)
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
dwDebugEventCode
);
}
LIST_FOR_EACH_ENTRY
(
thread
,
&
gdbctx
->
process
->
threads
,
struct
dbg_thread
,
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