aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/macro.c
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2020-03-24 18:03:08 +0100
committerHannes Domani <ssbssa@yahoo.de>2020-03-25 15:31:09 +0100
commitd503b685c6b7384b389767d5153235039e2b8fc4 (patch)
treedde41a1bfc61b100c8968ea169e1330afb4c56a8 /gdb/dwarf2/macro.c
parent4c83662712f80abe9a7d8ef645123347a9de7adb (diff)
downloadbinutils-d503b685c6b7384b389767d5153235039e2b8fc4.zip
binutils-d503b685c6b7384b389767d5153235039e2b8fc4.tar.gz
binutils-d503b685c6b7384b389767d5153235039e2b8fc4.tar.bz2
Fix WOW64 process system DLL paths
GetModuleFileNameEx returns for some DLLs of WOW64 processes the path inside the 64bit system directory instead of the 32bit syswow64 directory. Problem happens e.g. with dbghelp.dll: (gdb) start Temporary breakpoint 1 at 0x415a00: file fiber.cpp, line 430. Starting program: C:\src\tests\fiber.exe warning: `C:\Windows\system32\dbghelp.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386. Temporary breakpoint 1, main () at fiber.cpp:430 430 { (gdb) info sharedlibrary From To Syms Read Shared Object Library 0x77070000 0x771d4d20 Yes (*) C:\Windows\SysWOW64\ntdll.dll 0x74dc0000 0x74ebad9c Yes (*) C:\Windows\syswow64\kernel32.dll 0x75341000 0x75386a18 Yes (*) C:\Windows\syswow64\KernelBase.dll 0x6f6a1000 0x6f7c48fc Yes (*) C:\Windows\system32\dbghelp.dll 0x74d01000 0x74dab2c4 Yes (*) C:\Windows\syswow64\msvcrt.dll (*): Shared library is missing debugging information. This detects this situation and converts the DLL path to the syswow64 equivalent. gdb/ChangeLog: 2020-03-25 Hannes Domani <ssbssa@yahoo.de> * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
Diffstat (limited to 'gdb/dwarf2/macro.c')
0 files changed, 0 insertions, 0 deletions