This is the mail archive of the
mailing list for the GDB project.
Re: RFC: Demangle partial symbols and save memory too
- From: "Paul N. Hilfinger" <hilfingr at otisco dot mckusick dot com>
- To: drow at mvista dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 26 Jan 2003 17:55:22 -0800
- Subject: Re: RFC: Demangle partial symbols and save memory too
- References: <20030126222808.GA18132@nevyn.them.org>
- Reply-to: Hilfinger at otisco dot mckusick dot com
> 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?