This patch replaces a call to cplus_demangle with a call to
authorGary Benson <gbenson@redhat.com>
Tue, 3 Jun 2014 12:49:20 +0000 (13:49 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 3 Jun 2014 12:49:20 +0000 (13:49 +0100)
gdb_demangle.  This change was included in an RFC from last
March [1] but omitted from the eventual commit.

[1] https://sourceware.org/ml/gdb-patches/2013-03/msg00235.html

2014-06-03  Gary Benson  <gbenson@redhat.com>

* gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.

gdb/ChangeLog
gdb/gnu-v2-abi.c

index 2cf2ed0..bda46b5 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-03  Gary Benson  <gbenson@redhat.com>
+
+       * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
+
 2014-06-02  Doug Evans  <xdje42@gmail.com>
 
        Add parameter support for Guile.
index 4a488be..3ca01c3 100644 (file)
@@ -251,7 +251,7 @@ gnuv2_value_rtti_type (struct value *v, int *full, int *top, int *using_enc)
     return NULL;
 
   /* If we just skip the prefix, we get screwed by namespaces.  */
-  demangled_name=cplus_demangle(linkage_name,DMGL_PARAMS|DMGL_ANSI);
+  demangled_name=gdb_demangle(linkage_name,DMGL_PARAMS|DMGL_ANSI);
   p = strchr (demangled_name, ' ');
   if (p)
     *p = '\0';