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.
This commit is contained in:
parent
4078678289
commit
e5946e1604
4 changed files with 85 additions and 1 deletions
|
@ -2074,7 +2074,7 @@ eval_op_type (struct type *expect_type, struct expression *exp,
|
|||
|
||||
/* A helper function for BINOP_ASSIGN_MODIFY. */
|
||||
|
||||
static struct value *
|
||||
struct value *
|
||||
eval_binop_assign_modify (struct type *expect_type, struct expression *exp,
|
||||
enum noside noside, enum exp_opcode op,
|
||||
struct value *arg1, struct value *arg2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue