This is the mail archive of the dwarf2@corp.sgi.com mailing list for the dwarf2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Replicated Dwarf [was Re: location lists]


>>>>> "Todd" == Todd Allen <todd.allen@ccur.com> writes:

>    So, using DW_AT_specification seems like a cleaner way to connect the
>    local copies to the global.

Fair enough.

>    And because it isn't a defining declaration, giving it
>    DW_AT_declaration also seems a good idea.

I disagree, because it has location attributes.

>    But is some other indication that it's a local copy needed?  In Ada, I
>    think not.  If we found an object in a function that had a
>    DW_AT_specification referencing an object in some other scope, we'd know
>    for sure that Something Was Up.  But in C, you can put an extern
>    declaration in a function.  How would you tell the difference?

extern declarations in C don't refer to the defining DIE.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]