From d9e7db065eb663303dc8f0dad2c784dde9df6555 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Mar 2021 07:27:57 -0700 Subject: Implement Ada multiplicative operators This implements the Ada multiplicative operators, using an existing template class. gdb/ChangeLog 2021-03-08 Tom Tromey * ada-lang.c (ada_mult_binop): No longer static. * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation) (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs. --- gdb/ada-exp.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/ada-exp.h') diff --git a/gdb/ada-exp.h b/gdb/ada-exp.h index ad69d93..da52d5c 100644 --- a/gdb/ada-exp.h +++ b/gdb/ada-exp.h @@ -42,6 +42,10 @@ extern struct value *ada_unop_in_range (struct type *expect_type, struct expression *exp, enum noside noside, enum exp_opcode op, struct value *arg1, struct type *type); +extern struct value *ada_mult_binop (struct type *expect_type, + struct expression *exp, + enum noside noside, enum exp_opcode op, + struct value *arg1, struct value *arg2); namespace expr { @@ -150,6 +154,11 @@ public: { return std::get<0> (m_storage); } }; +using ada_binop_mul_operation = binop_operation; +using ada_binop_div_operation = binop_operation; +using ada_binop_rem_operation = binop_operation; +using ada_binop_mod_operation = binop_operation; + } /* namespace expr */ #endif /* ADA_EXP_H */ -- cgit v1.1