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.
This commit is contained in:
Pedro Alves 2015-11-28 16:39:32 +00:00
parent 3b16c5514a
commit 16807a48ed
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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