• Eric Pouech's avatar
    dbghelp: Handle the case where loader isn't what WINELOADER reports. · a4b206b3
    Eric Pouech authored
    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: 's avatarEric Pouech <eric.pouech@gmail.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    a4b206b3
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
coff.c Loading commit data...
cpu_arm.c Loading commit data...
cpu_arm64.c Loading commit data...
cpu_i386.c Loading commit data...
cpu_x86_64.c Loading commit data...
dbghelp.c Loading commit data...
dbghelp.spec Loading commit data...
dbghelp_private.h Loading commit data...
dwarf.c Loading commit data...
dwarf.h Loading commit data...
elf_module.c Loading commit data...
image.c Loading commit data...
image_private.h Loading commit data...
inflate.c Loading commit data...
macho_module.c Loading commit data...
minidump.c Loading commit data...
module.c Loading commit data...
msc.c Loading commit data...
path.c Loading commit data...
pe_module.c Loading commit data...
source.c Loading commit data...
stabs.c Loading commit data...
stack.c Loading commit data...
storage.c Loading commit data...
symbol.c Loading commit data...
type.c Loading commit data...
version.rc Loading commit data...
wdbgexts.h Loading commit data...
zlib.h Loading commit data...