Re: [RFC] Partial support for dwarf3 DW_AT_ranges

Daniel Berlin
2002-01-04T15:20:53Z

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?