From: Pierre Muller Date: Wed, 30 Jan 2008 07:31:07 +0000 (+0000) Subject: 2008-01-25 Pierre Muller X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b3442eed1e4e92ea063d245ff9362cbec4498c5;p=binutils-gdb.git 2008-01-25 Pierre Muller * eval.c (evaluate_subexp_standard): Support BINOP_INTDIV opcode. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 67fbd01d3ae..926af00d1d5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-30 Pierre Muller + + * eval.c (evaluate_subexp_standard): Support + BINOP_INTDIV opcode. + 2008-01-30 Paul N. Hilfinger * valarith.c (value_binop): Add floating-point BINOP_MIN and 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);