Use allocated cplus_specific for cplus symbols.
authorSami Wagiaalla <swagiaal@redhat.com>
Fri, 16 Jul 2010 19:23:56 +0000 (19:23 +0000)
committerSami Wagiaalla <swagiaal@redhat.com>
Fri, 16 Jul 2010 19:23:56 +0000 (19:23 +0000)
commit29df156df4e7df351f9ba24641df74739d39c8e8
tree871abb704d7e9222c4b40e32aff076ec9d141ec0
parent502abbdf22c780cc0acdc17b90159a8e475db036
Use allocated cplus_specific for cplus symbols.

2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>

* symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
argument.
(cplus_specific): New struct.
* symtab.c (symbol_set_demangled_name): Updated.
Use cplus_specific for cplus symbols.
(symbol_get_demangled_name): Retrive the name from the cplus_specific
struct for cplus symbols.
(symbol_init_language_specific): Set cplus_specific for cplus symbols.
(symbol_set_names): Pass objfile to symbol_set_demangled_name.
* symtab.c (symbol_init_cplus_specific): New function.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/symtab.c
gdb/symtab.h