2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
* symtab.c (symbol_get_demangled_name): Remove assertion and
return NULL when language_specific.cplus_specific is not initialized.
* stabsread.c (define_symbol): Set the name before calling
cp_scan_for_anonymous_namespaces.
+2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * symtab.c (symbol_get_demangled_name): Remove assertion and
+ return NULL when language_specific.cplus_specific is not initialized.
+ * stabsread.c (define_symbol): Set the name before calling
+ cp_scan_for_anonymous_namespaces.
+
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
* symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
memcpy (name, string, p - string);
name[p - string] = '\0';
new_name = cp_canonicalize_string (name);
- cp_scan_for_anonymous_namespaces (sym);
}
if (new_name != NULL)
{
}
else
SYMBOL_SET_NAMES (sym, string, p - string, 1, objfile);
+
+ if (SYMBOL_LANGUAGE (sym) == language_cplus)
+ cp_scan_for_anonymous_namespaces (sym);
+
}
p++;
{
if (gsymbol->language == language_cplus)
{
- gdb_assert (gsymbol->language_specific.cplus_specific != NULL);
- return gsymbol->language_specific.cplus_specific->demangled_name;
+ if (gsymbol->language_specific.cplus_specific != NULL)
+ return gsymbol->language_specific.cplus_specific->demangled_name;
+ else
+ return NULL;
}
else
return gsymbol->language_specific.mangled_lang.demangled_name;