[PATCH 0/1] MR112: Revert "dbghelp: Don't bother trying to initialize loader backend if we can't...

Jinoh Kang (@iamahuman) wine at gitlab.winehq.org
Sun May 22 06:52:12 CDT 2022


Revert "dbghelp: Don't bother trying to initialize loader backend if we can't get debug base address from PEB."

This reverts commit 3047385437c7ef36996d0418ac378677f3e9d67c.

ntdll.so puts the base address of the main Unix executable, called the
"debug base address," inside an unused field of PEB.

When debugging a WoW64 target process, obtaining the debug base address
fails.  This is because the architecture of PE modules differs from that
of Unix modules.  Specifically, dbghelp attempts to fetch it from the
WoW64 PEB although it actually resides in the native PEB.

However, this shouldn't be a reason to give up initializing dbghelp
entirely.  We do not expect a "user-mode" debugger to be able to debug
Unix-side modules in a WoW64 process anyway.

Signed-off-by: Jinoh Kang <jinoh.kang.kr at gmail.com>

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/112



More information about the wine-devel mailing list