[Dwarf-discuss] class members and DW_AT_specification

Nettleton, Brian brian.nettleton@windriver.com
Tue Feb 27 04:55:06 GMT 2007


I think it would be a stretch to say it's required.  However I'd give it
a recommended if the source indeed contained both the declaration and
the definition.  This way the file position information could be
accurately represented with the two different symbols representing the
two different locations of the symbol in the source.

-Brian Nettleton


> -----Original Message-----
> From: dwarf-discuss-bounces at lists.dwarfstd.org 
> [mailto:dwarf-discuss-bounces at lists.dwarfstd.org] On Behalf 
> Of Chris Quenelle
> Sent: Monday, February 26, 2007 7:31 PM
> To: dwarf-discuss at lists.dwarfstd.org
> Subject: [Dwarf-discuss] class members and DW_AT_specification
> 
> 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
> _______________________________________________
> dwarf-discuss mailing list
> dwarf-discuss at lists.dwarfstd.org
> http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
> 




More information about the Dwarf-discuss mailing list