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: Jim Blandy <jimb at codesourcery dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 31 Oct 2007 17:26:37 -0700
- Subject: Re: RFC: Represent lexical blocks covering discontiguous ranges
- References: <m3y7dsgh9n.fsf@codesourcery.com> <20071030215359.GB5259@adacore.com>
Joel Brobecker <brobecker at adacore.com> writes:
>> 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?
We could, although it would waste a little space. Let me chew on that
a bit.