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@gmail.com