This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/dwarf] Don't process types multiple times
- From: David Carlton <carlton at kealia dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Jim Blandy <jimb at redhat dot com>, Elena Zannoni <ezannoni at redhat dot com>
- Date: Wed, 25 Feb 2004 09:02:19 -0800
- Subject: Re: [RFA/dwarf] Don't process types multiple times
- References: <20040225044206.GA23242@nevyn.them.org>
On Tue, 24 Feb 2004 23:42:06 -0500, Daniel Jacobowitz <drow@false.org> said:
> There are two ways that we can process a general DIE: process_die or
> read_type_die. Children of particular DIE types may be processed
> directly, but these are the only major dispatch points. It's
> interesting to notice that almost everything called from
> read_type_die starts with "if (die->type) return": everything but
> enumeration types and aggregate types, in fact. This means that if
> the first reference to an enumeration or aggregate type is a
> DW_AT_type or DW_AT_containing_type in a DIE numerically before the
> type's DIE, we'll end up calling new_symbol for it twice.
Yeah, that had been bothering me for a while, too.
In the FIXME comment, could you add your name and the date?
David Carlton
carlton@kealia.com