Introduce unop_ind_operation
[binutils-gdb.git] / gdb / ChangeLog
index 729074bd61d019a9267838eac9488ca55e9eb5be..da7cd6916f8d60073e67281685ff8726d67607e2 100644 (file)
@@ -1,3 +1,31 @@
+2021-03-08  Tom Tromey  <tom@tromey.com>
+
+       * expop.h (class unop_ind_base_operation)
+       (class unop_ind_operation): New.
+       * eval.c (eval_op_ind): No longer static.  Remove "op" parameter.
+       (unop_ind_base_operation::evaluate_for_address)
+       (unop_ind_base_operation::evaluate_for_sizeof): New method.
+       * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
+
+2021-03-08  Tom Tromey  <tom@tromey.com>
+
+       * expop.h (unop_incr_operation): New template.
+       (preinc_operation, predec_operation, postinc_operation)
+       (postdec_operation): New typedefs.
+       * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
+       (eval_op_postdec): No longer static.
+
+2021-03-08  Tom Tromey  <tom@tromey.com>
+
+       * expop.h (unary_ftype): New typedef.
+       (unop_operation, usual_ax_binop_operation): New templates.
+       (unary_plus_operation, unary_neg_operation)
+       (unary_complement_operation, unary_logical_not_operation): New
+       typedefs.
+       * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
+       (eval_op_lognot): No longer static.
+       * ax-gdb.c (gen_expr_unop): New function.
+
 2021-03-08  Tom Tromey  <tom@tromey.com>
 
        * ax-gdb.c (comma_operation::do_generate_ax): New method.