Modify gcc for use with gdb (issue5132047)

Jakub Jelinek jakub@redhat.com
Fri Oct 7 14:39:00 GMT 2011


On Fri, Oct 07, 2011 at 07:42:44AM -0600, Tom Tromey wrote:
> >>>>> "Jeff" == Jeff Law <law@redhat.com> writes:
> 
> Jeff> Presumably it hasn't been included because not all gdb's understand
> Jeff> those bits and we typically don't build with -g3.
> 
> GCC is pretty much the perfect candidate for a -g3 build.  All those
> macros...
> 
> The needed gdb changes have been in since right around when I added that
> patch to the incremental branch.  Anybody with a > 3 year old gdb should
> upgrade :-)

A > 3 years old gdb is useless for debugging gcc anyway, it won't understand
epilogue unwind info, discriminators, lots of .debug_info stuff added
in the last few years and not even the .debug_macro format.

	Jakub



More information about the Gcc-patches mailing list