Sweden-Number/dlls/dbghelp
Eric Pouech a4b206b384 dbghelp: Handle the case where loader isn't what WINELOADER reports.
use case, in a WoW setup:
	wine programs/winedbg/winedbg.exe.so notepad.exe
where both winedbg and notepad are 64bit exec:s

in this case, dbghelp (loaded from winedbg) reads '<...>/wine' from WINELOADER
windows env block inside notepad
(but the unix env block is correctly set to wine64 by the tweak in
ntdll/unix/loader.c)

as a consequence dbghelp doesn't get the ELF information (it tries to read 32bit
ELF entities, and fails); hence misses all the loaded ELF libraries
winedbg's command 'info share' only reports the PE modules

note: the 'dual' case
  wine64 programs/winedbg/winedbg.exe.so c:\\windows\\syswow64\\notepad.exe
  where winedbg is a 64bit exec and notepad a 32bit
  shows the same failures

workaround this in dbghelp by tweaking the value of WINELOADER whether
the debuggee is 32 or 64bit

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-03 13:51:04 +02:00
..
tests
Makefile.in
coff.c
cpu_arm.c
cpu_arm64.c
cpu_i386.c
cpu_x86_64.c
dbghelp.c dbghelp: Fix SymInitialize for a live 32bit target from a 64bit caller in WOW64. 2021-08-31 21:59:30 +02:00
dbghelp.spec
dbghelp_private.h dbghelp: Handle the case where loader isn't what WINELOADER reports. 2021-09-03 13:51:04 +02:00
dwarf.c dbghelp: Properly handle errors when reading first DIE in compilation unit. 2021-09-03 13:50:52 +02:00
dwarf.h dbghelp: Fix dwarf constants. 2021-09-03 13:49:31 +02:00
elf_module.c dbghelp: Handle the case where loader isn't what WINELOADER reports. 2021-09-03 13:51:04 +02:00
image.c
image_private.h dbghelp: Store the IMAGE_OPTIONAL_HEADER in either 32bit or 64bit form. 2021-08-31 21:59:20 +02:00
inflate.c
macho_module.c dbghelp: Handle the case where loader isn't what WINELOADER reports. 2021-09-03 13:51:04 +02:00
minidump.c
module.c dbghelp: Handle the case where loader isn't what WINELOADER reports. 2021-09-03 13:51:04 +02:00
msc.c dbghelp: Tidy up internals for array type. 2021-09-01 21:21:49 +02:00
path.c
pe_module.c dbghelp: Store the IMAGE_OPTIONAL_HEADER in either 32bit or 64bit form. 2021-08-31 21:59:20 +02:00
source.c dbghelp: Harden inspection of Dwarf line number information. 2021-09-03 13:50:38 +02:00
stabs.c dbghelp: Tidy up internals for array type. 2021-09-01 21:21:49 +02:00
stack.c
storage.c
symbol.c dbghelp: Return the stored name for a compiland. 2021-08-30 22:49:58 +02:00
type.c dbghelp: Tidy up internals for array type. 2021-09-01 21:21:49 +02:00
version.rc
wdbgexts.h
zlib.h