This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: dwarf2_physname() question
- From: Yao Qi <yao at codesourcery dot com>
- To: Andrew Gontarek <andrewg at cray dot com>
- Cc: <gdb at sourceware dot org>
- Date: Fri, 17 Oct 2014 17:33:27 +0800
- Subject: Re: dwarf2_physname() question
- Authentication-results: sourceware.org; auth=none
- References: <543EA711 dot 7070603 at cray dot com>
Andrew Gontarek <andrewg@cray.com> writes:
> My question is why is dwarf2_physname() ignoring the DW_AT_name if it is
> present? The DW_AT_name is supposed to represent the identifier name as it
> appears in the source. Shouldn't that take priority when gdb creates the
> symbol?
DW_AT_name is there but may be broken, GDB has to rely on
DW_AT_MIPS_linkage_name. I am not very sure on this, so people who are
more familiar on dwarf can give comments on top of mine.
I find some discussions on this thread, and it may help
[RFA] dwarf2_physname FINAL
https://sourceware.org/ml/gdb-patches/2010-03/msg00220.html
--
Yao (éå)