This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Variable tracking


On Thu, Oct 09, 2003 at 01:32:49PM -0400, Daniel Berlin wrote:
> 
> On Oct 9, 2003, at 1:22 PM, Josef Zlomek wrote:
> 
> >Hello,
> >
> >this patch adds variable tracking pass - it tracks where the variables
> >are located at each position in code and generates location lists.
> >GDB 6.x can read this information and show value of variables even
> >in optimized code, i.e. variables in registers, variables on stack
> >addressed using stack pointer, variables whose location changes in the
> >function, ...
> >Variable tracking takes about 2% of compile time and is enabled by
> >default when compiling with debug info and optimization.
> >
> >I know GCC is in stage 2 but GDB people would like GCC to generate
> >location lists...
> >I think the risk of breaking something is really small. The risk is
> >almost zero when we disable it by default.
> >
> >Bootstrapped/regtested x86-64.
> >OK for mainline?
> >
> 
> BTW, for those curious, this allows you to debug quite well with -O2 
> -fomit-frame-pointer on.
> --Dan

While we're catering to the curious:

To experiment with this, use GDB from CVS, either the 6.0 branch or
HEAD; GDB 6.0 is missing two patches.  There should be a re-release
for 6.0.1 before GCC 3.4 is ready.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]