From 9eaf670568f57fc78fe40d30fc89ac5b442693fb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 19 Jul 2012 15:33:25 +0000 Subject: * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE. * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE, UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use type_exp production where appropriate. * eval.c (evaluate_subexp_standard) : New case. : Update. : New case. (evaluate_subexp_for_address) : New case. (evaluate_subexp_for_sizeof) : New case. * expprint.c (print_subexp_standard) : New case. : New case. (dump_subexp_body_standard) : Update. : New cases. * parse.c (operator_length_standard) : Update. : New cases. * stack.c (return_command): Also check for UNOP_CAST_TYPE. * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New constants. --- gdb/std-operator.def | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/std-operator.def') diff --git a/gdb/std-operator.def b/gdb/std-operator.def index f2f650b01b..9c6a01be32 100644 --- a/gdb/std-operator.def +++ b/gdb/std-operator.def @@ -216,6 +216,9 @@ OP (OP_ARRAY) It casts the value of the following subexpression. */ OP (UNOP_CAST) +/* Like UNOP_CAST, but the type is a subexpression. */ +OP (UNOP_CAST_TYPE) + /* The C++ dynamic_cast operator. */ OP (UNOP_DYNAMIC_CAST) @@ -235,6 +238,9 @@ OP (UNOP_MEMVAL) following subexpression from the TLS specified by `struct objfile'. */ OP (UNOP_MEMVAL_TLS) +/* Like UNOP_MEMVAL, but the type is supplied as a subexpression. */ +OP (UNOP_MEMVAL_TYPE) + /* UNOP_... operate on one value from a following subexpression and replace it with a result. They take no immediate arguments. */ -- cgit v1.2.3