This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/37982] Extraneous DW_TAG_variable tag
- From: "swagiaal at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2008 16:12:23 -0000
- Subject: [Bug debug/37982] Extraneous DW_TAG_variable tag
- References: <bug-37982-11288@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from swagiaal at redhat dot com 2008-12-01 16:12 -------
> DW_AT_MIPS_linkage_name should be removed from GCC only after the DW_AT_name
> scoping/qualification will get fully fixed. GDB currently already contains the
> DW_AT_MIPS_linkage_name reader and there is probably no need to disable it
> (except for testing purposes).
>
Agreed. My patch fixes test cases where DW_AT_MIPS_linkage_name was not
generated by gcc, but the patch should be smarter about falling back on
DW_AT_MIPS_linkage_name when the correct canonical name cannot be constructed.
> On GDB CVS HEAD for gdb.cp/m-static.exp a command `print gnu_obj_4::elsewhere'
> works for me as it can find (presumably) the corrent .symtab mangled symbol.
>
> Sure it would be good to get DW_AT_name fixed in GCC.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37982