diff options
author | Pedro Alves <palves@redhat.com> | 2009-11-26 22:14:39 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-11-26 22:14:39 +0000 |
commit | cf6e347119cedaea5da620bda5c2c94eeb73fab6 (patch) | |
tree | da18d000f6a270b504e1dc53bc1691ef667deffa /gdb/gdbserver/win32-low.c | |
parent | 28d5f6774058f4c7d5141b1dda8b76ee81f8cf4f (diff) | |
download | gdb-cf6e347119cedaea5da620bda5c2c94eeb73fab6.zip gdb-cf6e347119cedaea5da620bda5c2c94eeb73fab6.tar.gz gdb-cf6e347119cedaea5da620bda5c2c94eeb73fab6.tar.bz2 |
* win32-low.c (win32_add_one_solib): If the dll name is
"ntdll.dll", prepend the system directory to the dll path.
Diffstat (limited to 'gdb/gdbserver/win32-low.c')
-rw-r--r-- | gdb/gdbserver/win32-low.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index bcf16b2..ff46b2d 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 |