Bernhard Übelacker : winedbg: Try to load debug symbols for executable in gdb mode.

Alexandre Julliard julliard at winehq.org
Fri Jun 25 16:29:09 CDT 2021


Module: wine
Branch: master
Commit: 61310dd3b8bfc393b4b722652651fd726e25da7b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=61310dd3b8bfc393b4b722652651fd726e25da7b

Author: Bernhard Übelacker <bernhardu at mailbox.org>
Date:   Fri Jun 25 17:19:33 2021 +0200

winedbg: Try to load debug symbols for executable in gdb mode.

Signed-off-by: Bernhard Übelacker <bernhardu at mailbox.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winedbg/gdbproxy.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 478e0d16fe0..19fa86d44da 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -437,6 +437,9 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx)
         fprintf(stderr, "%04x:%04x: create thread I @%p\n", de->dwProcessId,
             de->dwThreadId, de->u.CreateProcessInfo.lpStartAddress);
 
+        dbg_load_module(gdbctx->process->handle, de->u.CreateProcessInfo.hFile, u.buffer,
+                        (DWORD_PTR)de->u.CreateProcessInfo.lpBaseOfImage, 0);
+
         dbg_add_thread(gdbctx->process, de->dwThreadId,
                        de->u.CreateProcessInfo.hThread,
                        de->u.CreateProcessInfo.lpThreadLocalBase);




More information about the wine-cvs mailing list