This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
PR/2386 [1/2]: MinGW attach to process without an exec file
- From: Pedro Alves <pedro_alves at portugalmail dot pt>
- To: gdb-patches at sourceware dot org
- Cc: Bogdan Slusarczyk <bodzio131 at op dot pl>
- Date: Fri, 28 Dec 2007 01:20:57 +0000
- Subject: PR/2386 [1/2]: MinGW attach to process without an exec file
We currently don't set a default gdb_osabi for MinGW, Cygwin or WinCE,
Having a default osabi allows gdb to set a useful current_gdbarch
if for some reason gdb isn't able to open a bfd to the executable.
For multi-target builds, the default will probably not make sense
for any other target than the native -- so we may want to
move this default osabi somewhere else, like the target interface, or
moving the target string matching into runtime code, but that's
for another day. The patch just follows status quo.
Tested on XP Pro SP2, i686-pc-cygwin. There is a regression,
because now Cygwin will also trip on gdb/2225.
OK ?
--
Pedro Alves
2007-12-28 Pedro Alves <pedro_alves@portugalmail.pt>
* configure.tgt (*-*-mingw32ce*): Set gdb_osabi to
GDB_OSABI_WINCE.
(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.
---
gdb/configure.tgt | 3 +++
1 file changed, 3 insertions(+)
Index: src/gdb/configure.tgt
===================================================================
--- src.orig/gdb/configure.tgt 2007-12-26 23:46:34.000000000 +0000
+++ src/gdb/configure.tgt 2007-12-27 00:50:52.000000000 +0000
@@ -530,4 +530,7 @@ m68*-*-openbsd* | m88*-*-openbsd* | vax-
*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
+*-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
+*-*-mingw* | *-*-cygwin*)
+ gdb_osabi=GDB_OSABI_CYGWIN ;;
esac