[PATCH resend] winedbg: Try to load debug symbols for executable in gdb mode.

Alexandre Julliard julliard at winehq.org
Fri Jun 25 09:26:44 CDT 2021


Bernhard Übelacker <bernhardu at mailbox.org> writes:

> diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
> index 478e0d16fe0..d768a8a585c 100644
> --- a/programs/winedbg/gdbproxy.c
> +++ b/programs/winedbg/gdbproxy.c
> @@ -437,6 +437,17 @@ 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);
>  
> +        fetch_module_name( de->u.CreateProcessInfo.lpImageName, de->u.CreateProcessInfo.lpBaseOfImage,
> +                           u.buffer, ARRAY_SIZE(u.buffer) );
> +        fprintf(stderr, "%04x:%04x: loads EXE %s @%p (%u<%u>)\n",
> +                de->dwProcessId, de->dwThreadId,
> +                dbg_W2A(u.buffer, -1),
> +                de->u.CreateProcessInfo.lpBaseOfImage,
> +                de->u.CreateProcessInfo.dwDebugInfoFileOffset,
> +                de->u.CreateProcessInfo.nDebugInfoSize);

None of that should be necessary, it looks like you are copying some old
code.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list