|
From: <sv...@va...> - 2010-01-01 20:56:25
|
Author: sewardj
Date: 2010-01-01 20:56:13 +0000 (Fri, 01 Jan 2010)
New Revision: 10988
Log:
initUnwindContext: put back into the loop, some initialisations for
ARM which were originally in the loop but inadvertantly got lifted out
during recent merging. This appears to make stack unwinding work
again on ARM-Linux.
Modified:
trunk/coregrind/m_debuginfo/readdwarf.c
Modified: trunk/coregrind/m_debuginfo/readdwarf.c
===================================================================
--- trunk/coregrind/m_debuginfo/readdwarf.c 2010-01-01 19:55:17 UTC (rev 10987)
+++ trunk/coregrind/m_debuginfo/readdwarf.c 2010-01-01 20:56:13 UTC (rev 10988)
@@ -2015,16 +2015,16 @@
ctx->state[j].reg[i].tag = RR_Undef;
/* ctx->state[j].reg[i].arg = 0; */
}
+# if defined(VGA_arm)
+ /* All callee-saved registers (or at least the ones we are
+ summarising for) should start out as RR_Same, on ARM. */
+ ctx->state[j].reg[11].tag = RR_Same;
+ /* ctx->state[j].reg[13].tag = RR_Same; */
+ ctx->state[j].reg[14].tag = RR_Same;
+ ctx->state[j].reg[12].tag = RR_Same;
+ /* this can't be right though: R12 (IP) isn't callee saved. */
+# endif
}
-# if defined(VGA_arm)
- /* All callee-saved registers (or at least the ones we are
- summarising for) should start out as RR_Same, on ARM. */
- ctx->state[j].reg[11].tag = RR_Same;
- /* ctx->state[j].reg[13].tag = RR_Same; */
- ctx->state[j].reg[14].tag = RR_Same;
- ctx->state[j].reg[12].tag = RR_Same;
- /* this can't be right though: R12 (IP) isn't callee saved. */
-# endif
}
|