]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Always fix system DLL paths for 32bit programs
authorHannes Domani <ssbssa@yahoo.de>
Fri, 27 Mar 2020 11:34:02 +0000 (12:34 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Fri, 27 Mar 2020 21:48:03 +0000 (22:48 +0100)
commitebea76263935aba585f8f8b1d27b13737e231eec
tree1f2bf51a196c77f3b0e7920e8813bcb4051e5c94
parent258e884429c87ed5ebee2b7767e3955218ec064b
Always fix system DLL paths for 32bit programs

GetModuleFileNameEx might also return the 64bit system directory for 32bit
programs even for a 32bit gdb:

(gdb) info sharedlibrary
From        To          Syms Read   Shared Object Library
0x779d0000  0x77b34d20  Yes (*)     C:\Windows\SysWOW64\ntdll.dll
0x76850000  0x7694ad9c  Yes (*)     C:\Windows\syswow64\kernel32.dll
0x75421000  0x75466a18  Yes (*)     C:\Windows\syswow64\KernelBase.dll
0x6fbe1000  0x6fcca1c0  Yes (*)     C:\Windows\system32\dbghelp.dll
0x76d31000  0x76ddb2c4  Yes (*)     C:\Windows\syswow64\msvcrt.dll

So this makes the path conversion for all 32bit programs.

gdb/ChangeLog:

2020-03-27  Hannes Domani  <ssbssa@yahoo.de>

* windows-nat.c (windows_add_all_dlls): Fix system dll paths.
gdb/ChangeLog
gdb/windows-nat.c