This is the mail archive of the
dwarf2@corp.sgi.com
mailing list for the dwarf2 project.
Re: Replicated Dwarf [was Re: location lists]
- To: todd dot allen at attglobal dot net
- Subject: Re: Replicated Dwarf [was Re: location lists]
- From: Jason Merrill <jason at redhat dot com>
- Date: 21 Mar 2001 18:30:26 +0000
- Cc: eager at eagercon dot com, dwarf2 at corp dot sgi dot com (dwarf2)
- References: <200103211628.f2LGSMS08071@toad.ccur.com>
- Reply-To: Jason Merrill <jason at redhat dot com>
>>>>> "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