From: Pierre Muller Date: Thu, 17 Jan 2008 19:55:09 +0000 (+0000) Subject: * valarith.c (value_binop): Handle BINOP_INTDIV X-Git-Tag: sid-snapshot-20080201~164 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef80d18e09a88e922addd6c9830795f3e069df02;p=thirdparty%2Fbinutils-gdb.git * valarith.c (value_binop): Handle BINOP_INTDIV for unsigned and signed integers. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7c1f0a20661..a00a1bd6d74 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-17 Pierre Muller + + * valarith.c (value_binop): Handle BINOP_INTDIV + for unsigned and signed integers. + 2008-01-17 Ulrich Weigand * s390-tdep.c (s390_gdbarch_init): Set default long double diff --git a/gdb/valarith.c b/gdb/valarith.c index 05ab8a13890..562be0cab1b 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -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