This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Making CFLAGS=-g1 bigger but more useful
- From: Ian Lance Taylor <iant at google dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>, gcc at gcc dot gnu dot org, systemtap at sources dot redhat dot com
- Date: Sat, 25 Apr 2009 10:30:51 -0700
- Subject: Re: Making CFLAGS=-g1 bigger but more useful
- References: <y0mljpplgvb.fsf@ton.toronto.redhat.com> <20090425073819.GN13896@one.firstfloor.org>
Andi Kleen <andi@firstfloor.org> writes:
> On Fri, Apr 24, 2009 at 08:24:56PM -0400, Frank Ch. Eigler wrote:
>>
>> I'm working on a little patch that extends the data produced for the
>> little-used (?) -g1 mode. Normally, this produces very little DWARF
>> data (basically just function declaration locus, PC range, and basic
>> backtrace-enabling data). Compared to normal -g (== -g2) mode, this
>> is very small.
>
> I think what I would like to have is a modus to generate line numbers
> (so that objdump -S works nicely) but nothing else. That would be useful
> for crash dump analysis etc.
It's not quite that, but the gold linker has a --strip-debug-non-line
option which discards all the debugging information except what is
needed to map addresses to lines.
Ian