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: Paolo Bonzini <bonzini at gnu dot org>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, andi at firstfloor dot org, systemtap at sources dot redhat dot com
- Date: Sat, 25 Apr 2009 12:46:44 +0200
- Subject: Re: Making CFLAGS=-g1 bigger but more useful
- References: <y0mljpplgvb.fsf@ton.toronto.redhat.com>
> The basic question though is whether there is interest here for this
> sort of -g1.5 mode. We could ...
Yes, definitely. I thought about it in two contexts -- regular
debugging, and the fact that the OpenCL GSOC project might require
looking at debug info for memory spaces and types of arguments.
> - ignore the value of this enlarged -g1 and forget the idea
>
> - adopt the enlarged definition for -g1 and live with the size penalty
>
> - introduce a new -g1.5 (between DINFO_LEVEL_TERSE and DINFO_LEVEL_NORMAL)
> to select the enlarged definition (syntax suggestions wanted)
Another possibility, though a much bigger amount of work, would be to
introduce -g options like -f. The presence of such an option would
imply -g1 or higher, and then you could add -gparameters,
-gline-numbers, -gvar-tracking, -gmacros, etc.
Paolo