* win32-low.c (win32_add_one_solib): If the dll name is
authorPedro Alves <palves@redhat.com>
Thu, 26 Nov 2009 22:14:39 +0000 (22:14 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 26 Nov 2009 22:14:39 +0000 (22:14 +0000)
"ntdll.dll", prepend the system directory to the dll path.

gdb/gdbserver/ChangeLog
gdb/gdbserver/win32-low.c

index 077442a9c8515aedf07422ca9955cfa068a87aee..542e9a9aa6fa02364cac86632c6cf32cb1dd2e91 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-26  Pedro Alves  <pedro@codesourcery.com>
+
+       * 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  <dan@codesourcery.com>
 
        * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
index bcf16b2ece3af7d89dc6400b4de830d67df3639d..ff46b2de28293df552f0380150ea9a310e301418 100644 (file)
@@ -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