This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Support for multiple DWARF comp unit headers
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: Petr Sorfa <petrs at caldera dot com>,"gdb-patches at sources dot redhat dot com" <gdb-patches at sources dot redhat dot com>
- Date: Thu, 4 Jul 2002 23:34:14 -0400 (EDT)
- Subject: 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.