diff options
author | Pierre Muller <muller@sourceware.org> | 2008-01-30 07:31:07 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2008-01-30 07:31:07 +0000 |
commit | 9b3442eed1e4e92ea063d245ff9362cbec4498c5 (patch) | |
tree | 465ab1943a50eaec7a8ddbc4e8b39db867242b84 | |
parent | d118ef8764180584e6b42b38d8c68c18bf8c83c4 (diff) | |
download | gdb-9b3442eed1e4e92ea063d245ff9362cbec4498c5.zip gdb-9b3442eed1e4e92ea063d245ff9362cbec4498c5.tar.gz gdb-9b3442eed1e4e92ea063d245ff9362cbec4498c5.tar.bz2 |
2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
* eval.c (evaluate_subexp_standard): Support
BINOP_INTDIV opcode.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/eval.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 67fbd01..926af00 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr> + + * eval.c (evaluate_subexp_standard): Support + BINOP_INTDIV opcode. + 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com> * valarith.c (value_binop): Add floating-point BINOP_MIN and @@ -1496,6 +1496,7 @@ evaluate_subexp_standard (struct type *expect_type, case BINOP_EXP: case BINOP_MUL: case BINOP_DIV: + case BINOP_INTDIV: case BINOP_REM: case BINOP_MOD: case BINOP_LSH: @@ -1510,7 +1511,8 @@ evaluate_subexp_standard (struct type *expect_type, if (binop_user_defined_p (op, arg1, arg2)) return value_x_binop (arg1, arg2, op, OP_NULL, noside); else if (noside == EVAL_AVOID_SIDE_EFFECTS - && (op == BINOP_DIV || op == BINOP_REM || op == BINOP_MOD)) + && (op == BINOP_DIV || op == BINOP_REM || op == BINOP_MOD + || op == BINOP_INTDIV)) return value_zero (value_type (arg1), not_lval); else return value_binop (arg1, arg2, op); |