[RFC] Partial support for dwarf3 DW_AT_ranges

Daniel Jacobowitz drow@mvista.com
Fri Jan 4 09:13:00 GMT 2002


On Fri, Jan 04, 2002 at 10:21:04AM -0500, Daniel Berlin wrote:
> On Mon, 31 Dec 2001, Richard Henderson wrote:
> 
> > GCC began emitting DW_AT_ranges back in September to deal with
> > lexical scopes made discontiguous by basic block reordering.
> > 
> > As of today, it may also create discontiguous lexical scopes
> > due to scheduling.  (Before today under the same circumstances
> > we'd lose track of which instructions belonged to which scope
> > and fail to emit any debug information whatsoever.)
> > 
> > However, GDB doesn't recognize DW_AT_ranges as a valid way of
> > marking a lexical scope, which causes it to discard the scope
> > entirely.  Which is probably the least useful thing that could
> > be done.
> > 
> > The following does not add proper support for discontiguous
> > address ranges.  I couldn't figure out how to do that in any
> > way that wasn't horribly invasive.  
> Horribly invasive to the dwarf2 reader, or to other pieces of gdb?

Other places in GDB; the framework isn't there to record it.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb-patches mailing list