DW_AT_specification: long ago GDB change

Jason Merrill jason@redhat.com
Fri Apr 16 12:49:00 GMT 2004


On 15 Apr 2004 17:19:17 -0500, Jim Blandy <jimb@redhat.com> wrote:

> Here are the attributes I see that we shouldn't search for in dies
> referenced by DW_AT_specification, but which are reasonable to look
> for in dies referred to by DW_AT_abstract_origin:
>
>   - DW_AT_declaration
>   - DW_AT_decl_column
>   - DW_AT_decl_file
>   - DW_AT_decl_line

I disagree about the other three; if the definition has different source
coordinates, it will have the attributes.  If it doesn't, there's no reason
to emit them again, and we should look them up in the declaration.

Jason



More information about the Gdb-patches mailing list