aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2008-01-17 19:55:09 +0000
committerPierre Muller <muller@sourceware.org>2008-01-17 19:55:09 +0000
commitef80d18e09a88e922addd6c9830795f3e069df02 (patch)
tree647b87da6a249cf29765e917b268daf45bd09d2f /gdb/valarith.c
parent1de90795b9a9af9cb9be8359e997a9304967fc35 (diff)
downloadgdb-ef80d18e09a88e922addd6c9830795f3e069df02.zip
gdb-ef80d18e09a88e922addd6c9830795f3e069df02.tar.gz
gdb-ef80d18e09a88e922addd6c9830795f3e069df02.tar.bz2
* valarith.c (value_binop): Handle BINOP_INTDIV
for unsigned and signed integers.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 05ab8a1..562be0c 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