Introduce unop_ind_operation
authorTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:27:57 +0000 (07:27 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:28:21 +0000 (07:28 -0700)
commit876469ffa1f52b15dfbc8336b31b908edf95fba6
tree529d3b4adac4c544c72ca41c199415aa543bb943
parent6d89e2962a8cc245b8364e1968396873bd0bb9b1
Introduce unop_ind_operation

This adds class unop_ind_operation, which implements UNOP_IND.

gdb/ChangeLog
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.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/eval.c
gdb/expop.h