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: gdb at sources dot redhat dot com, binutils at sources dot redhat dot com
- Subject: Re: stabs vs. dwarf-2 for C programs
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Thu, 12 Apr 2001 22:17:42 -0400
- References: <5mwv8pzgvt.fsf@jtc.redback.com>
On Thu, Apr 12, 2001 at 07:13:26PM -0700, J.T. Conklin wrote:
>In general, are there any advantages for using dwarf-2 over
>stabs debugging symbols for C (not C++) programs?
>
>I did a quick test of rebuilding our system with dwarf-2 debug
>symbols, and found that the image file grew from 35MB to 167MB
>and link times nearly quadrupled, so dwarf-2 isn't looking so
>good so far. If I had to guess, it looks like duplicate debug
>info (from headers, etc.) isn't being eliminated as is done
>for stabs.
Daniel Berlin contributed some duplicate debug elimination code to gcc
for Dwarf-2. It should be in the gcc 3.0 branch, if you are
adventurous.
There is an option to turn it on "-feliminate-dwarf2-dups". I don't
know if this is the default or not.
cgf