summaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2008-01-30 07:31:07 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2008-01-30 07:31:07 +0000
commite6e68b12852af96e234971b3a7e4c36a865688e6 (patch)
treed39911ed9a640d31d60a7ae3f79c0f24782c78b6 /gdb/eval.c
parent8d6458391db2d9d2f7f77eb1bb451a69a3849d6d (diff)
downloadgdb-e6e68b12852af96e234971b3a7e4c36a865688e6.tar.gz
2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
* eval.c (evaluate_subexp_standard): Support BINOP_INTDIV opcode.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 466ae248ce5..bcbd061f376 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -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);