Re: RFC: Demangle partial symbols and save memory too

Paul N. Hilfinger
2003-01-27T01:54:38Z

> This also lets us uniquely share the symbol names between msyms, psyms, and
> full symbols. More memory savings, and we get the demangling for free.

While you're in there merging symbol strings, perhaps you can explain
this code from stabsread.c (there might be similar code for other
readers; I haven't looked): In define_symbol, handling of 'T' case:

if (TYPE_TAG_NAME (SYMBOL_TYPE (sym)) == 0)
TYPE_TAG_NAME (SYMBOL_TYPE (sym))
= obconcat (&objfile->type_obstack, "", "", SYMBOL_NAME (sym));

Why can't just SYMBOL_NAME (sym) be used for the TYPE_TAG_NAME value?

Paul Hilfinger