This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc/rft] --enable-targets=all with 32-bit BFD


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]