Re: [RFC/RFA] Deal with -g1 generated DWARF2 debug info

Mark Kettenis
2005-12-04T22:31:27Z

> 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.