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  <gbenson@redhat.com>

	* gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
This commit is contained in:
Gary Benson 2014-06-03 13:49:20 +01:00
parent 835c559fd5
commit d3448d8523
2 changed files with 5 additions and 1 deletions

View 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.

View 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';