|
From: <sv...@va...> - 2010-01-21 10:20:02
|
Author: tom
Date: 2010-01-21 10:19:46 +0000 (Thu, 21 Jan 2010)
New Revision: 11028
Log:
DW_OP_mod should do unsigned arithmetic. Closes #223656.
Modified:
trunk/coregrind/m_debuginfo/d3basics.c
Modified: trunk/coregrind/m_debuginfo/d3basics.c
===================================================================
--- trunk/coregrind/m_debuginfo/d3basics.c 2010-01-17 11:02:23 UTC (rev 11027)
+++ trunk/coregrind/m_debuginfo/d3basics.c 2010-01-21 10:19:46 UTC (rev 11028)
@@ -770,12 +770,12 @@
PUSH(sw1);
break;
case DW_OP_mod:
- POP(sw2);
- if (sw2 == 0)
+ POP(uw2);
+ if (uw2 == 0)
FAIL("evaluate_Dwarf3_Expr: division by zero");
- POP(sw1);
- sw1 %= sw2;
- PUSH(sw1);
+ POP(uw1);
+ uw1 %= uw2;
+ PUSH(uw1);
break;
#define BINARY(name, op, s) \
case DW_OP_##name: \
|