ARM unwinder: Add missing 'register' variable in debug output

Also fix a wrong format specifier for an unsigned variable.
Detected by cppcheck, patch submitted upstream.

Change-Id: I9b84d91eeb242ed77b53ecc16252c5b35190bb9f
This commit is contained in:
Thomas Jarosch 2015-01-12 19:15:05 +01:00
parent 1589b28afc
commit fa592cc725

View file

@ -308,7 +308,7 @@ UnwResult UnwStartArm(UnwState * const state)
if(shiftDist) if(shiftDist)
{ {
UnwPrintd3("%s #%d", UnwPrintd3("%s #%u",
shiftMnu[shiftType], shiftDist); shiftMnu[shiftType], shiftDist);
} }
UnwPrintd3("\t; r%d %s", rm, M_Origin2Str(state->regData[rm].o)); UnwPrintd3("\t; r%d %s", rm, M_Origin2Str(state->regData[rm].o));
@ -618,7 +618,7 @@ UnwResult UnwStartArm(UnwState * const state)
} }
} }
UnwPrintd2(" R%d = 0x%08x\n", r); UnwPrintd2(" R%d = 0x%08x\n", r, state->regData[r].v);
} }
if(!P) addr += U ? 4 : -4; if(!P) addr += U ? 4 : -4;