This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc/rft] --enable-targets=all with 32-bit BFD
- From: Pedro Alves <pedro_alves at portugalmail dot pt>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: Pierre Muller <muller at ics dot u-strasbg dot fr>, gdb-patches at sourceware dot org
- Date: Wed, 21 Nov 2007 01:01:02 +0000
- Subject: Re: [rfc/rft] --enable-targets=all with 32-bit BFD
- References: <200711202223.lAKMNXDC014305@d12av02.megacenter.de.ibm.com>
Hi Ulrich, Pierre,
Ulrich Weigand wrote:
When testing this on i386-linux, I noticed another bug:
the i386_cygwin_osabi_sniffer routine claims all "elf32-i386"
files as GDB_OSABI_CYGWIN, because Cygwin apparently uses
ELF format core files. This means that if Cygwin is
configured as secondary target, i386-linux debugging will
fail because all ELF executables will be interpreted as
Cygwin ...
The following patch fixes this as well, by making sure that
only Cygwin core files are claimed as GDB_OSABI_CYGWIN. The
heuristic used is to check whether a ".reg" section of the
proper size exists. Could you verify whether Cygwin core
files are still recognized correctly with this patch?
At least on my machine this requires dumper.exe (the
tool that produces cygwin core dumps) from HEAD.
Since I've written the original problem (wasn't really a
problem then :-) ), if Pierre doesn't have a Cygwin HEAD
build handy, I'll try to test that part of the patch
tomorrow or the day after.
--
Pedro Alves