Introduce repeat_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:20 +0000 (07:28 -0700)
commitd4eff4c122e06e913452e2039e29e8db6b15b1dd
tree947f955e0c6857fae0edb7d26cb9d0e86f594daf
parent46916f2bcbaf4532aab9fecb2344330710129ffa
Introduce repeat_operation

This adds class repeat_operation, which implements BINOP_REPEAT.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

* expop.h (class repeat_operation): New.
* eval.c (eval_op_repeat): No longer static.  Remove "op"
parameter.
(evaluate_subexp_standard): Update.
* ax-gdb.c (repeat_operation::do_generate_ax): New method.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/eval.c
gdb/expop.h