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 dbghelp/tests: Try to fix failure in current dbghelp tests. 2021-07-06 16:10:00 +02:00
Makefile.in
coff.c
cpu_arm.c
cpu_arm64.c
cpu_i386.c krnl386: Move the 16-bit stack out of the WOW32Reserved field. 2020-11-26 21:31:53 +01:00
cpu_x86_64.c dbghelp: Support UWOP_PUSH_MACHFRAME on x64. 2021-01-15 16:19:28 +01:00
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: Implement SymFromNameW(). 2021-04-22 21:12:57 +02:00
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 dbghelp: Fetch version info only for PE modules in minidumps. 2020-12-14 21:43:30 +01:00
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 dbghelp: Look for .so files in the architecture-specific directory. 2021-04-28 16:25:48 +02:00
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