From d3448d85235386883085fedff90263881fc17b8f Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Tue, 3 Jun 2014 13:49:20 +0100 Subject: [PATCH] This patch replaces a call to cplus_demangle with a call to 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 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle. --- gdb/ChangeLog | 4 ++++ gdb/gnu-v2-abi.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2cf2ed09ce5..bda46b5e34c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-06-03 Gary Benson + + * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle. + 2014-06-02 Doug Evans Add parameter support for Guile. diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index 4a488be2087..3ca01c367cf 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -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'; -- 2.30.2