aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-07-16 19:00:56 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-07-16 19:00:56 +0000
commitb250c185b3caee6fe956a82b5a5e3fb333eac4fd (patch)
tree246eef89103cf70adf3118f9a33fc327104549de /gdb/dwarf2read.c
parentafa167257180d762c37b049af6ac6dd9ac0e7dbc (diff)
downloadgdb-b250c185b3caee6fe956a82b5a5e3fb333eac4fd.zip
gdb-b250c185b3caee6fe956a82b5a5e3fb333eac4fd.tar.gz
gdb-b250c185b3caee6fe956a82b5a5e3fb333eac4fd.tar.bz2
Use setter and getter for demangled_name.
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h (symbol_set_demangled_name): New function. (symbol_get_demangled_name): New function. * symtab.c (symbol_set_demangled_name): New function. (symbol_get_demangled_name): New function. (symbol_init_language_specific): Use demangled_name setter and getter. (symbol_set_names): Ditto. (symbol_natural_name): Ditto. (symbol_demangled_name): Ditto. * dwarf2read.c (new_symbol): Ditto.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 8f129b9..234c5cc 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -9743,9 +9743,8 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
/* Fortran does not have mangling standard and the mangling does differ
between gfortran, iFort etc. */
if (cu->language == language_fortran
- && sym->ginfo.language_specific.mangled_lang.demangled_name == NULL)
- sym->ginfo.language_specific.mangled_lang.demangled_name
- = (char *) dwarf2_full_name (name, die, cu);
+ && symbol_get_demangled_name (&(sym->ginfo)) == NULL)
+ symbol_set_demangled_name (&(sym->ginfo), (char *) dwarf2_full_name (name, die, cu));
/* Default assumptions.
Use the passed type or decode it from the die. */