PR c++/11990:
* c-lang.c (cplus_language_defn): Use gdb_demangle. * c-typeprint.c (c_type_print_base): Use gdb_demangle. * cp-support.c (mangled_name_to_comp): Use gdb_demangle. (gdb_demangle): New function. * cp-support.h (gdb_demangle): Declare. * dwarf2read.c (dwarf2_physname, fixup_partial_die) (dwarf2_name): Use gdb_demangle. * gdbtypes.c (check_stub_method): Use gdb_demangle. * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version suffixes from name. (gnuv3_print_method_ptr): Use gdb_demangle. * jv-lang.c (java_demangle): Use gdb_demangle. * jv-typeprint.c (java_type_print_base): Use gdb_demangle. * language.c (unk_lang_demangle): Use gdb_demangle. * symtab.c (symbol_find_demangled_name) (demangle_for_lookup): Use gdb_demangle.
This commit is contained in:
parent
591f19e89b
commit
8de20a37d6
12 changed files with 74 additions and 25 deletions
|
@ -43,6 +43,7 @@
|
|||
#include "jv-lang.h"
|
||||
#include "demangle.h"
|
||||
#include "symfile.h"
|
||||
#include "cp-support.h"
|
||||
|
||||
extern void _initialize_language (void);
|
||||
|
||||
|
@ -764,7 +765,7 @@ static CORE_ADDR unk_lang_trampoline (struct frame_info *frame, CORE_ADDR pc)
|
|||
/* Unknown languages just use the cplus demangler. */
|
||||
static char *unk_lang_demangle (const char *mangled, int options)
|
||||
{
|
||||
return cplus_demangle (mangled, options);
|
||||
return gdb_demangle (mangled, options);
|
||||
}
|
||||
|
||||
static char *unk_lang_class_name (const char *mangled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue