This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: DW_AT_specification and partial symtabs
- From: David Carlton <carlton at math dot stanford dot edu>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb <gdb at sources dot redhat dot com>, Elena Zannoni <ezannoni at redhat dot com>, Jim Blandy <jimb at redhat dot com>
- Date: 12 Jun 2003 10:10:28 -0700
- Subject: Re: DW_AT_specification and partial symtabs
- References: <m3el1zfcwd.fsf@dhcp-10-42-69-238.kealia.com><20030612170545.GA16995@nevyn.them.org>
On Thu, 12 Jun 2003 13:05:45 -0400, Daniel Jacobowitz <drow@mvista.com> said:
> I'll answer this in more depth in a bit. For now, something to
> consider: I would like to add .debug_typenames (spelling?) to GCC -
> it's an SGI extension, IIRC.
Yes. It's actually .debug_pubtypes, and has made it into the DWARF 3
spec. (Though the description there could use some work.)
I don't think that I'm too likely to do that myself, though, for
various reasons.
>> void foo ()
>> {
>> class Local {
>> public:
>> int mem() {return 1;}
>> };
>>
>> ...
>> }
>>
>> then is the compiler allowed to put a definition of Local::mem as a
>> child of the comp unit die (with a DW_AT_specification pointing to a
>> DIE inside of foo somewhere)?
> I believe so.
Ulgh. That's what I think, too.
David Carlton
carlton@math.stanford.edu