This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Represent lexical blocks covering discontiguous ranges
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Jim Blandy <jimb at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 30 Oct 2007 17:53:59 -0400
- Subject: Re: RFC: Represent lexical blocks covering discontiguous ranges
- References: <m3y7dsgh9n.fsf@codesourcery.com>
Hi Jim,
> This patch extends GDB's blockvector structure so that it can properly
> represent functions and lexical blocks whose code doesn't occupy a
> single contiguous range of addresses. In DWARF debuging information,
> this allows GDB to handle DW_AT_ranges attribute when it appears on
> DW_TAG_lexical_block, DW_TAG_try_block, and DW_TAG_catch_block
> debugging information entries. When the debugging information
> provides only a single contiguous range for each block, the code falls
> back to the old representation.
>
> What do folks think?
I think this is really cool. I guess my only question is: Why do we
keep the two parallel approaches to blocks? Could we simply only use
your map and get rid of the old structure?
--
Joel