2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Wed, 30 Jan 2008 07:31:07 +0000 (07:31 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 30 Jan 2008 07:31:07 +0000 (07:31 +0000)
* eval.c (evaluate_subexp_standard): Support
BINOP_INTDIV opcode.

gdb/ChangeLog
gdb/eval.c

index 67fbd01d3aeaa10f8374a0dfa1064035386a58c9..926af00d1d52bd0a177340c61c480f4ac419d07d 100644 (file)
@@ -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
index 466ae248ce5541b83b23fb0b58ef9e2609290184..bcbd061f37641ed49c8ce755ea3578dc5aac0f45 100644 (file)
@@ -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);
This page took 0.027101 seconds and 4 git commands to generate.