This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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]

Re: dwarflint versus linkage_name attributes


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);

Mark> Is that just a temporary name given to the anonymous struct?

Sort of.  In C++ this construct gives a name to the type for linkage
purposes only.  There is some wording in the standard along those lines.

Mark> Second question is how is gdb actually using this?

When constructing the anonymous type, gdb uses the linkage name to give
the type the name `t'.  What is specifically useful to gdb about this
approach is that it can be decided locally whether this is necessary.
Previous iterations required a lot of complicated code to defer giving
names to types until all the DIEs had been read in.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]