From: Pedro Alves Date: Thu, 26 Nov 2009 22:14:39 +0000 (+0000) Subject: * win32-low.c (win32_add_one_solib): If the dll name is X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf6e347119cedaea5da620bda5c2c94eeb73fab6;p=binutils-gdb.git * win32-low.c (win32_add_one_solib): If the dll name is "ntdll.dll", prepend the system directory to the dll path. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 077442a9c85..542e9a9aa6f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2009-11-26 Pedro Alves + + * win32-low.c (win32_add_one_solib): If the dll name is + "ntdll.dll", prepend the system directory to the dll path. + 2009-11-17 Daniel Jacobowitz * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index bcf16b2ece3..ff46b2de282 100644 --- a/gdb/gdbserver/win32-low.c +++ b/gdb/gdbserver/win32-low.c @@ -906,6 +906,14 @@ win32_add_one_solib (const char *name, CORE_ADDR load_addr) #endif } +#ifndef _WIN32_WCE + if (strcasecmp (buf, "ntdll.dll") == 0) + { + GetSystemDirectoryA (buf, sizeof (buf)); + strcat (buf, "\\ntdll.dll"); + } +#endif + #ifdef __CYGWIN__ cygwin_conv_to_posix_path (buf, buf2); #else