This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: stabs vs. dwarf-2 for C programs
- To: dan at cgsoftware dot com
- Subject: Re: stabs vs. dwarf-2 for C programs
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Fri, 13 Apr 2001 02:37:44 -0400
- CC: jtc at redback dot com, gdb at sourceware dot cygnus dot com, binutils at sourceware dot cygnus dot com
- References: <5mwv8pzgvt.fsf@jtc.redback.com> <m2y9t5y0ej.fsf@dynamic-addr-83-177.resnet.rochester.edu>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> From: Daniel Berlin <dan@cgsoftware.com>
> Date: 12 Apr 2001 22:54:44 -0400
>
> jtc@redback.com (J.T. Conklin) writes:
>
> > In general, are there any advantages for using dwarf-2 over
> > stabs debugging symbols for C (not C++) programs?
>
> Unless you want optimized code debugging, only space savings
> (theoretical, of course, right now. For C, anyway).
I _always_ debug optimized code (I think doing otherwise is not wise,
to put it gently). What are the advantages of dwarf2 for debugging
optimized C code?