aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-11-28 16:39:32 +0000
committerPedro Alves <palves@redhat.com>2015-11-28 17:11:45 +0000
commit9a2752c7f09d24865b33fedd9ac2585f3cbba3c3 (patch)
treecff58e224f8715cb81a02045fcfb04b3619e1896
parent49037e4a1249890812a8d4995c7592774e99c399 (diff)
downloadfsf-binutils-gdb-9a2752c7f09d24865b33fedd9ac2585f3cbba3c3.zip
fsf-binutils-gdb-9a2752c7f09d24865b33fedd9ac2585f3cbba3c3.tar.gz
fsf-binutils-gdb-9a2752c7f09d24865b33fedd9ac2585f3cbba3c3.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cp-name-parser.y2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f2b395f..0430b1f 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-26 Markus Metzger <markus.t.metzger@intel.com>
PR 19297
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y
index b4690ea..43e52a3 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