PR/2386 [1/2]: MinGW attach to process without an exec file

Pedro Alves
Fri Dec 28 01:21:00 GMT 2007

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32_default_osabi.diff
Type: text/x-diff
Size: 818 bytes
Desc: not available
URL: <>

More information about the Gdb-patches mailing list