This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Support for multiple DWARF comp unit headers


On 4 Jul 2002, Jim Blandy wrote:
> 
> Just out of curiosity --- after we've built `struct die_info' objects
> for a CU, we don't need the abbrev table any more, do we?  I may be
> misremembering the way the code behaves, but it seems to me that one
> could construct an abbrev table before calling read_comp_unit, and
> then throw it away when done.  Perhaps the abbrev tables are not big
> enough for this to be worth thinking about.

They generally aren't.
Two factors:
1. Generation of abbrev tables is usually very optimized.
2. The structure of debug info is fairly regular, it's only the actual 
information present in the structure that changes.  THus, the abbrev 
tables are fairly small.
In fact, i've never seen one that was more than about 150 entries.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]