[PATCH] Avoid warnings from newer Cygwin DLLS

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Sun Jan 6 06:59:00 GMT 2008


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.

ndex: win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.145
diff -d -u -p -r1.145 win32-nat.c
--- win32-nat.c 1 Jan 2008 18:42:08 -0000       1.145
+++ win32-nat.c 6 Jan 2008 06:57:21 -0000
@@ -656,7 +656,7 @@ win32_make_so (const char *name, DWORD l
       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;



More information about the Gdb-patches mailing list