Blame valgrind-3.5.0-DW_OP_mod.patch
|
Jakub Jelinek |
0332e1 |
--- valgrind/coregrind/m_debuginfo/d3basics.c.jj 2010-01-20 09:46:56.000000000 +0100
|
|
Jakub Jelinek |
0332e1 |
+++ valgrind/coregrind/m_debuginfo/d3basics.c 2010-01-20 09:52:33.000000000 +0100
|
|
Jakub Jelinek |
0332e1 |
@@ -770,12 +770,12 @@ GXResult ML_(evaluate_Dwarf3_Expr) ( UCh
|
|
Jakub Jelinek |
0332e1 |
PUSH(sw1);
|
|
Jakub Jelinek |
0332e1 |
break;
|
|
Jakub Jelinek |
0332e1 |
case DW_OP_mod:
|
|
Jakub Jelinek |
0332e1 |
- POP(sw2);
|
|
Jakub Jelinek |
0332e1 |
- if (sw2 == 0)
|
|
Jakub Jelinek |
0332e1 |
+ POP(uw2);
|
|
Jakub Jelinek |
0332e1 |
+ if (uw2 == 0)
|
|
Jakub Jelinek |
0332e1 |
FAIL("evaluate_Dwarf3_Expr: division by zero");
|
|
Jakub Jelinek |
0332e1 |
- POP(sw1);
|
|
Jakub Jelinek |
0332e1 |
- sw1 %= sw2;
|
|
Jakub Jelinek |
0332e1 |
- PUSH(sw1);
|
|
Jakub Jelinek |
0332e1 |
+ POP(uw1);
|
|
Jakub Jelinek |
0332e1 |
+ uw1 %= uw2;
|
|
Jakub Jelinek |
0332e1 |
+ PUSH(uw1);
|
|
Jakub Jelinek |
0332e1 |
break;
|
|
Jakub Jelinek |
0332e1 |
#define BINARY(name, op, s) \
|
|
Jakub Jelinek |
0332e1 |
case DW_OP_##name: \
|