aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-07-16 18:39:10 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-07-16 18:39:10 +0000
commitafa167257180d762c37b049af6ac6dd9ac0e7dbc (patch)
tree8b37f2847eb0260b625e902c878c3a2f41d44c7d /gdb/symtab.c
parent183e4ed8bc23eb5396b66e6d4a6167baa429f94d (diff)
downloadgdb-afa167257180d762c37b049af6ac6dd9ac0e7dbc.zip
gdb-afa167257180d762c37b049af6ac6dd9ac0e7dbc.tar.gz
gdb-afa167257180d762c37b049af6ac6dd9ac0e7dbc.tar.bz2
Rename cplus_specific mangled_lang.
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h: Renamed cplus_specific to mangled_lang. * symtab.c (symbol_init_language_specific): Updated. (symbol_set_names): Updated. (symbol_natural_name): Updated. (symbol_demangled_name): Updated. * ada-lang.c (ada_decode_symbol): Updated. * dwarf2read.c (new_symbol): Updated.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 07910db..dbe6b24 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -354,7 +354,7 @@ symbol_init_language_specific (struct general_symbol_info *gsymbol,
|| gsymbol->language == language_objc
|| gsymbol->language == language_fortran)
{
- gsymbol->language_specific.cplus_specific.demangled_name = NULL;
+ gsymbol->language_specific.mangled_lang.demangled_name = NULL;
}
else
{
@@ -537,7 +537,7 @@ symbol_set_names (struct general_symbol_info *gsymbol,
memcpy (gsymbol->name, linkage_name, len);
gsymbol->name[len] = '\0';
}
- gsymbol->language_specific.cplus_specific.demangled_name = NULL;
+ gsymbol->language_specific.mangled_lang.demangled_name = NULL;
return;
}
@@ -633,10 +633,10 @@ symbol_set_names (struct general_symbol_info *gsymbol,
gsymbol->name = (*slot)->mangled + lookup_len - len;
if ((*slot)->demangled[0] != '\0')
- gsymbol->language_specific.cplus_specific.demangled_name
+ gsymbol->language_specific.mangled_lang.demangled_name
= (*slot)->demangled;
else
- gsymbol->language_specific.cplus_specific.demangled_name = NULL;
+ gsymbol->language_specific.mangled_lang.demangled_name = NULL;
}
/* Return the source code name of a symbol. In languages where
@@ -652,12 +652,12 @@ symbol_natural_name (const struct general_symbol_info *gsymbol)
case language_java:
case language_objc:
case language_fortran:
- if (gsymbol->language_specific.cplus_specific.demangled_name != NULL)
- return gsymbol->language_specific.cplus_specific.demangled_name;
+ if (gsymbol->language_specific.mangled_lang.demangled_name != NULL)
+ return gsymbol->language_specific.mangled_lang.demangled_name;
break;
case language_ada:
- if (gsymbol->language_specific.cplus_specific.demangled_name != NULL)
- return gsymbol->language_specific.cplus_specific.demangled_name;
+ if (gsymbol->language_specific.mangled_lang.demangled_name != NULL)
+ return gsymbol->language_specific.mangled_lang.demangled_name;
else
return ada_decode_symbol (gsymbol);
break;
@@ -679,12 +679,12 @@ symbol_demangled_name (const struct general_symbol_info *gsymbol)
case language_java:
case language_objc:
case language_fortran:
- if (gsymbol->language_specific.cplus_specific.demangled_name != NULL)
- return gsymbol->language_specific.cplus_specific.demangled_name;
+ if (gsymbol->language_specific.mangled_lang.demangled_name != NULL)
+ return gsymbol->language_specific.mangled_lang.demangled_name;
break;
case language_ada:
- if (gsymbol->language_specific.cplus_specific.demangled_name != NULL)
- return gsymbol->language_specific.cplus_specific.demangled_name;
+ if (gsymbol->language_specific.mangled_lang.demangled_name != NULL)
+ return gsymbol->language_specific.mangled_lang.demangled_name;
else
return ada_decode_symbol (gsymbol);
break;