* win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings when
authorChristopher Faylor <me+cygwin@cgf.cx>
Sun, 6 Jan 2008 06:59:14 +0000 (06:59 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sun, 6 Jan 2008 06:59:14 +0000 (06:59 +0000)
using MS-DOS paths.

gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c

index b15d81b..370f829 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
+       when using MS-DOS paths.
+
 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
 
        * NEWS: Mention --pid and --core command line behaviour changes.
index ec014b3..40733a8 100644 (file)
@@ -656,7 +656,7 @@ win32_make_so (const char *name, DWORD load_addr)
       asection *text = NULL;
       CORE_ADDR text_vma;
 
-      abfd = bfd_openr (name, "pei-i386");
+      abfd = bfd_openr (so->so_name, "pei-i386");
 
       if (!abfd)
        return so;
index ec014b3..40733a8 100644 (file)
@@ -656,7 +656,7 @@ win32_make_so (const char *name, DWORD load_addr)
       asection *text = NULL;
       CORE_ADDR text_vma;
 
-      abfd = bfd_openr (name, "pei-i386");
+      abfd = bfd_openr (so->so_name, "pei-i386");
 
       if (!abfd)
        return so;