------- Comment #6 from swagiaal at redhat dot com 2008-11-28 16:33 -------
> (2) Defining declaration <86> should point by DW_AT_specification to its > non-defining declaration <37>. (The DWARF citation is here from Dodji.) > > (But I do not see these two problems as real issues for debugging.) > I ran into this issue because gdb was only reading die 0x86 for variable 'elsewhere' (I have not looked into why). The problem is that without proper scoping on an abstract_origin attribute, so the correct canonical name for this variable cannot be constructed (without relying on DW_AT_MIPS_linkage_name that is). Therefore a 'print A::elsewhere' command fails -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37982