This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The new addr2line -i feature added by Fred Fish, which prints info about inline function scopes, is not using the mangled names for inline C++ functions. The solution is pretty easy. The new function find_abstract_instance_name needs to look at and use the DW_AT_MIPS_linkage_name attributes. The fix here is to copy the code already used in scan_unit_for_symbols to set func->name. Without this patch, using the original testcase from Fred's binutils PR 947, we get _S_get_pool mt_allocator.h:450 ... With this patch, and adding the -C option, I now get __gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true>::_S_get_pool() mt_allocator.h:450 ... Since this appears to be a safe and non-controversial patch, I will self-approve this and check this in. This was tested with an ia64-linux make check. There were no regressions. -- Jim Wilson, GNU Tools Support, http://www.specifix.com
Attachment:
patch.mangled.inline
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |