This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Adjust GDB to demangler API change
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 28 Nov 2015 16:42:52 -0000
- Subject: [binutils-gdb] Adjust GDB to demangler API change
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=16807a48edfdfe89c8f8f745edeb938ef0b7e5eb
commit 16807a48edfdfe89c8f8f745edeb938ef0b7e5eb
Author: Pedro Alves <palves@redhat.com>
Date: Sat Nov 28 16:39:32 2015 +0000
Adjust GDB to demangler API change
Before commit 3a8724032abf, DEMANGLE_COMPONENT_CAST was used for both
casts and conversion operators. We now have
DEMANGLE_COMPONENT_CONVERSION for the latter.
gdb/ChangeLog:
2014-11-28 Pedro Alves <palves@redhat.com>
* cp-name-parser.y (conversion_op): Use
DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/cp-name-parser.y | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fd84223..209f7c7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-28 Pedro Alves <palves@redhat.com>
+
+ * cp-name-parser.y (conversion_op): Use
+ DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
+
2015-11-27 Simon Marchi <simon.marchi@ericsson.com>
* remote.c (start_thread): Add cast.
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y
index cbbb0e8..c7a3f12 100644
--- a/gdb/cp-name-parser.y
+++ b/gdb/cp-name-parser.y
@@ -528,7 +528,7 @@ oper : OPERATOR NEW
since it's not clear that it's parseable. */
conversion_op
: OPERATOR typespec_2
- { $$ = fill_comp (DEMANGLE_COMPONENT_CAST, $2, NULL); }
+ { $$ = fill_comp (DEMANGLE_COMPONENT_CONVERSION, $2, NULL); }
;
conversion_op_name