mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
Implement unary increment and decrement operations
This implements the unary increment and decrement operations, "++" and "--". gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * expop.h (unop_incr_operation): New template. (preinc_operation, predec_operation, postinc_operation) (postdec_operation): New typedefs. * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc) (eval_op_postdec): No longer static.
This commit is contained in:
@ -1912,7 +1912,7 @@ eval_op_memval (struct type *expect_type, struct expression *exp,
|
||||
|
||||
/* A helper function for UNOP_PREINCREMENT. */
|
||||
|
||||
static struct value *
|
||||
struct value *
|
||||
eval_op_preinc (struct type *expect_type, struct expression *exp,
|
||||
enum noside noside, enum exp_opcode op,
|
||||
struct value *arg1)
|
||||
@ -1943,7 +1943,7 @@ eval_op_preinc (struct type *expect_type, struct expression *exp,
|
||||
|
||||
/* A helper function for UNOP_PREDECREMENT. */
|
||||
|
||||
static struct value *
|
||||
struct value *
|
||||
eval_op_predec (struct type *expect_type, struct expression *exp,
|
||||
enum noside noside, enum exp_opcode op,
|
||||
struct value *arg1)
|
||||
@ -1974,7 +1974,7 @@ eval_op_predec (struct type *expect_type, struct expression *exp,
|
||||
|
||||
/* A helper function for UNOP_POSTINCREMENT. */
|
||||
|
||||
static struct value *
|
||||
struct value *
|
||||
eval_op_postinc (struct type *expect_type, struct expression *exp,
|
||||
enum noside noside, enum exp_opcode op,
|
||||
struct value *arg1)
|
||||
@ -2008,7 +2008,7 @@ eval_op_postinc (struct type *expect_type, struct expression *exp,
|
||||
|
||||
/* A helper function for UNOP_POSTDECREMENT. */
|
||||
|
||||
static struct value *
|
||||
struct value *
|
||||
eval_op_postdec (struct type *expect_type, struct expression *exp,
|
||||
enum noside noside, enum exp_opcode op,
|
||||
struct value *arg1)
|
||||
|
Reference in New Issue
Block a user