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

Pedro Alves
2007-11-21T01:01:07Z

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