projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement Ada min and max operations
[deliverable/binutils-gdb.git]
/
gdb
/
ada-exp.h
diff --git
a/gdb/ada-exp.h
b/gdb/ada-exp.h
index 0fe6ecf7e93a45cb302a529add2bc3b691bd8534..f3808935f994745c31a095642ac02dc51fd45a76 100644
(file)
--- a/
gdb/ada-exp.h
+++ b/
gdb/ada-exp.h
@@
-60,6
+60,11
@@
extern struct value *ada_binop_in_bounds (struct expression *exp,
struct value *arg1,
struct value *arg2,
int n);
struct value *arg1,
struct value *arg2,
int n);
+extern struct value *ada_binop_minmax (struct type *expect_type,
+ struct expression *exp,
+ enum noside noside, enum exp_opcode op,
+ struct value *arg1,
+ struct value *arg2);
namespace expr
{
namespace expr
{
@@
-173,6
+178,9
@@
using ada_binop_div_operation = binop_operation<BINOP_DIV, ada_mult_binop>;
using ada_binop_rem_operation = binop_operation<BINOP_REM, ada_mult_binop>;
using ada_binop_mod_operation = binop_operation<BINOP_MOD, ada_mult_binop>;
using ada_binop_rem_operation = binop_operation<BINOP_REM, ada_mult_binop>;
using ada_binop_mod_operation = binop_operation<BINOP_MOD, ada_mult_binop>;
+using ada_binop_min_operation = binop_operation<OP_ATR_MIN, ada_binop_minmax>;
+using ada_binop_max_operation = binop_operation<OP_ATR_MAX, ada_binop_minmax>;
+
/* Implement the equal and not-equal operations for Ada. */
class ada_binop_equal_operation
: public tuple_holding_operation<enum exp_opcode, operation_up, operation_up>
/* Implement the equal and not-equal operations for Ada. */
class ada_binop_equal_operation
: public tuple_holding_operation<enum exp_opcode, operation_up, operation_up>
This page took
0.023804 seconds
and
4
git commands to generate.