[Dwarf-Discuss] name lookup w/ using directives
Daniel Jacobowitz
drow@false.org
Thu Aug 21 20:46:20 GMT 2008
On Thu, Aug 21, 2008 at 04:09:56PM -0400, John DelSignore wrote:
> I don't know what the right answer is here, but I can tell you what
> we do in TotalView.
Not surprisingly, what you've described is also exactly how it works
for GDB (at least, for C++). GDB's tried to keep vendor and version
based quirking to a minimum, but there are already some; and as we use
more complicated bits of DWARF I wouldn't be surprised to add more of
them.
Speaking of C++, does anyone have experience with associating symbol
names to templates using the DWARF tags for templates? I have a
limited sample size (only one of the compilers I'm working with at the
moment uses DW_TAG_template_type_parameter and
DW_TAG_template_value_parameter; GCC doesn't, yet). But I'm so far
not seeing how these will work out for me.
For instance, DW_TAG_template_value_parameter has a constant value.
This will give me at best something like foo<0x12345678>, instead of
foo<&(mangled::name)>; the former isn't going to make much sense to a
user. And it's not always possible to go all the way back to the ELF
symbol table for a mangled name (e.g. classes without member
functions; or ambiguity on systems with multiple overlays at a given
address).
--
Daniel Jacobowitz
CodeSourcery
More information about the Dwarf-discuss
mailing list