aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-07-16 19:23:56 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-07-16 19:23:56 +0000
commit29df156df4e7df351f9ba24641df74739d39c8e8 (patch)
tree871abb704d7e9222c4b40e32aff076ec9d141ec0 /gdb/dwarf2read.c
parent502abbdf22c780cc0acdc17b90159a8e475db036 (diff)
downloadgdb-29df156df4e7df351f9ba24641df74739d39c8e8.zip
gdb-29df156df4e7df351f9ba24641df74739d39c8e8.tar.gz
gdb-29df156df4e7df351f9ba24641df74739d39c8e8.tar.bz2
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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 234c5cc..288d777 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -9744,7 +9744,9 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
between gfortran, iFort etc. */
if (cu->language == language_fortran
&& symbol_get_demangled_name (&(sym->ginfo)) == NULL)
- symbol_set_demangled_name (&(sym->ginfo), (char *) dwarf2_full_name (name, die, cu));
+ symbol_set_demangled_name (&(sym->ginfo),
+ (char *) dwarf2_full_name (name, die, cu),
+ NULL);
/* Default assumptions.
Use the passed type or decode it from the die. */