This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Remove current_gdbarch register handling from symbol readers
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 21 May 2009 06:26:57 +0300
- Subject: Re: [rfc] Remove current_gdbarch register handling from symbol readers
- References: <200905210052.n4L0qMgq002959@d12av02.megacenter.de.ibm.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 21 May 2009 02:52:22 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> Cc: gdb-patches@sourceware.org
>
> Only the Windows/DOS related targets remain. Of those, all the
> -pe / -mingw / -cygwin / -interix targets actually use the PE
> file format, not "real" COFF, and GCC will default to generate
> stabs or DWARF-2 for those. It seems possible to use -gcoff to
> force GCC to emit COFF/SDB debug info; I'm not sure if this will
> actually work with PE files ...
Well, I already tried that, and at least with MinGW GCC 3.4.2 that I
have installed, it fails: the binary produced with -gcoff is not
recognized by MinGW GDB 6.8 (it says "not in executable format").
Maybe it's a bug somewhere.
> The only target for which GCC by default generates COFF/SDB debug
> info does indeed appear to be -msdosdjgpp ...
DJGPP GCC uses DWARF-2 by default also, but it fully supports -gcoff.
The problem is that DJGPP does not support expect, so the the test
suite cannot be run. I can run some tests manually, so if you or
someone else could tell which test may be affected by this change, I
can try running them.
Thanks.