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


On Tue, 2011-04-05 at 07:57 -0600, Tom Tromey wrote:
> 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.

OK, so just to be clear this isn't actually used as a linkage_name by
GDB then? And the name `t' is kind of arbitrary? The "rule" for the
extension is that there should be an identifier in DW_AT_linkage_name
for an anonymous structure_type (which doesn't have DW_AT_name set)?

I am just wondering whether you have thought about submitting it as an
official DWARF extension.

Thanks,

Mark


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