Introduce scope_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:14 +0000 (07:28 -0700)
commitd5ab122c48fec1eb617598c02c6efdf9ba1ee23f
tree0dd3301e5acbc2e0fe2b8c27d9d7306aba9234b6
parentcae26a0cb05be806ae97d4fabc1cb8e6773a1512
Introduce scope_operation

This adds class scope_operation, an implementation of OP_SCOPE.

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

* expop.h (class scope_operation): New.
* eval.c (eval_op_scope): No longer static.
(scope_operation::evaluate_for_address): New method.
* ax-gdb.c (scope_operation::do_generate_ax): New method.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/eval.c
gdb/expop.h