[Dwarf-discuss] class members and DW_AT_specification

Chris Quenelle Chris.Quenelle@Sun.COM
Tue Feb 27 03:31:19 GMT 2007


g++ seems to generate two dies for each member function.
A declaration die inside the class scope, and a definition
die at the compilation-unit scope.  The definition is hooked
to the declaration with a DW_AT_specification, which seems fine.

Is there some reading of the dwarf standard that might make this
the required or recommended way of doing things?  Or was this
done for some kind of implementation-specific reason in
either g++ or gdb?

Anyone have any ideas?

--chris




More information about the Dwarf-discuss mailing list