This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Partial support for dwarf3 DW_AT_ranges
- From: Daniel Berlin <dan at cgsoftware dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: <gdb-patches at sources dot redhat dot com>
- Date: Fri, 4 Jan 2002 10:21:04 -0500 (EST)
- Subject: Re: [RFC] Partial support for dwarf3 DW_AT_ranges
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?