* valarith.c (value_binop): Handle BINOP_INTDIV
authorPierre Muller <muller@sourceware.org>
Thu, 17 Jan 2008 19:55:09 +0000 (19:55 +0000)
committerPierre Muller <muller@sourceware.org>
Thu, 17 Jan 2008 19:55:09 +0000 (19:55 +0000)
for unsigned and signed integers.

gdb/ChangeLog
gdb/valarith.c

index 7c1f0a20661d44250ac5bd2db18733e417781603..a00a1bd6d746db35f88c1c59cdb4841003b2a4c8 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * valarith.c (value_binop): Handle BINOP_INTDIV
+       for unsigned and signed integers.
+
 2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * s390-tdep.c (s390_gdbarch_init): Set default long double
index 05ab8a1389024acb71096db820add6b86095fc26..562be0cab1bbe921ff58083403e6167ef9f8e42b 100644 (file)
@@ -1033,6 +1033,7 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
              break;
 
            case BINOP_DIV:
+           case BINOP_INTDIV:
              v = v1 / v2;
              break;
 
@@ -1152,6 +1153,7 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
              break;
 
            case BINOP_DIV:
+           case BINOP_INTDIV:
              if (v2 != 0)
                v = v1 / v2;
              else
This page took 0.030012 seconds and 4 git commands to generate.