Introduce assign_modify_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:24 +0000 (07:28 -0700)
commite5946e1604068a154a8541f88d74ad75a9e52fac
tree4d2d484d5f5b3a60ae9cef1ddc63952142ee62fb
parent40786782896deaf8f97f8dc62b85d9facb30fc8a
Introduce assign_modify_operation

This adds class assign_modify_operation, which implements
BINOP_ASSIGN_MODIFY.

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

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