This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA] Deal with -g1 generated DWARF2 debug info
On Sun, Dec 04, 2005 at 11:30:48PM +0100, Mark Kettenis wrote:
> > Date: Sun, 4 Dec 2005 14:00:21 -0800
> > From: Jim Blandy <jimb@red-bean.com>
> >
> > The central issue here is that the compiler is emitting incorrect
> > debug info. The GCC manual says of -g1:
> >
> > Level 1 produces minimal information, enough for making backtraces
> > in parts of the program that you don't plan to debug. This
> > includes descriptions of functions and external variables, but no
> > information about local variables and no line numbers.
> >
> > Nothing there about reducing all return types to 'void'.
>
> But fixing that would probably require that GCC dumps the complete
> type info, which would reduce the usefulness of -g1. And that doesn't
> change the fact that GCC probably has been doing this for quite some
> time now.
Except, no one seems to _use_ .debug_info with -g1... Why do you want
information about functions, if it's not going to tell you anything
that wasn't in the symbol table?
--
Daniel Jacobowitz
CodeSourcery, LLC