diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-15 17:30:36 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-04-15 17:30:36 +0000 |
commit | 8de20a37d6eb551a69a04b1b8e67874b9f14123d (patch) | |
tree | 0e19cbd2515bc9102ac300513ec7012cc8228da3 /gdb/cp-support.c | |
parent | 591f19e89b4b671f1124cdc21605bba1d3d6b8d0 (diff) | |
download | gdb-8de20a37d6eb551a69a04b1b8e67874b9f14123d.zip gdb-8de20a37d6eb551a69a04b1b8e67874b9f14123d.tar.gz gdb-8de20a37d6eb551a69a04b1b8e67874b9f14123d.tar.bz2 |
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.
Diffstat (limited to 'gdb/cp-support.c')
-rw-r--r-- | gdb/cp-support.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 22e8fc4..3c1442d 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -635,7 +635,7 @@ mangled_name_to_comp (const char *mangled_name, int options, /* If it doesn't, or if that failed, then try to demangle the name. */ - demangled_name = cplus_demangle (mangled_name, options); + demangled_name = gdb_demangle (mangled_name, options); if (demangled_name == NULL) return NULL; @@ -1476,6 +1476,14 @@ cp_lookup_rtti_type (const char *name, struct block *block) return rtti_type; } +/* A wrapper for bfd_demangle. */ + +char * +gdb_demangle (const char *name, int options) +{ + return bfd_demangle (NULL, name, options); +} + /* Don't allow just "maintenance cplus". */ static void |