This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: [6.0] PROBLEMS and NEWS


Andrew Cagney <ac131313@redhat.com> writes:
> >> +DWARF 2 Location Expressions allow the compiler to more exactly
> >> +describe the location of variables to the debugger.
> > It'd be nice to give some indication of why the user would care about
> > this, like: "Taken together with Dwarf 2 Call Frame Information,
> > location expressions give GDB the information it needs to debug
> > optimized code much more effectively."
> 
> At one stage I had the word optimized, but took it out.  I've changed it to:
> 
> DWARF 2 Location Expressions allow the compiler to more completly
> describe the location of variables (even in optimized code) to the
> debugger.

You're right --- it's always better to describe things that way.  How
hard the compiler worked to generate the code isn't the point: how
accurately the compiler describes whatever it produces is.

I'd say "more accurately" instead of "more completely", since the most
common manifestation of the old problem was that GDB was wrong about
the location of the variable, not that it couldn't find the variable.


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