This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: dwarflint versus linkage_name attributes
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 07 Apr 2011 10:20:34 +0200
- Subject: Re: dwarflint versus linkage_name attributes
On Tue, 2011-04-05 at 07:57 -0600, Tom Tromey wrote:
> Mark> MIPS_linkage_name (string) "1t"
>
> Mark> So the first question is, how do I demangle this "1t"?
>
> demangled = cplus_demangle (part_die->linkage_name, DMGL_TYPES);
Just for reference. Everybody else knew already of course, this
corresponds to c++filt -t:
-t
--types
Attempt to demangle types as well as function names. This is
disabled by default since mangled types are normally only used
internally in the compiler, and they can be confused with non-
mangled names. For example, a function called "a" treated as a
mangled type name would be demangled to "signed char".