aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-08 07:27:57 -0700
committerTom Tromey <tom@tromey.com>2021-03-08 07:28:24 -0700
commite5946e1604068a154a8541f88d74ad75a9e52fac (patch)
tree4d2d484d5f5b3a60ae9cef1ddc63952142ee62fb /gdb/eval.c
parent40786782896deaf8f97f8dc62b85d9facb30fc8a (diff)
downloadgdb-e5946e1604068a154a8541f88d74ad75a9e52fac.zip
gdb-e5946e1604068a154a8541f88d74ad75a9e52fac.tar.gz
gdb-e5946e1604068a154a8541f88d74ad75a9e52fac.tar.bz2
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.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index f0bad85..4a76135 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -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)