This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: RFC: Demangle partial symbols and save memory too


> 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


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