ARM unwinder for thumb: Fix broken SUB opcode

Detected while looking through the code.
Patch submitted upstream.

Change-Id: I7ebe7b5f5947cf3df1b054d545dba92829f21b99
This commit is contained in:
Thomas Jarosch 2015-01-12 19:26:16 +01:00
parent fa592cc725
commit 7361a433d0

View file

@ -244,7 +244,7 @@ UnwResult UnwStartThumb(UnwState * const state)
case 3: /* SUB */ case 3: /* SUB */
UnwPrintd5("SUB r%d, #0x%d\t; r%d %s", UnwPrintd5("SUB r%d, #0x%d\t; r%d %s",
rd, offset8, rd, M_Origin2Str(state->regData[rd].o)); rd, offset8, rd, M_Origin2Str(state->regData[rd].o));
state->regData[rd].v += offset8; state->regData[rd].v -= offset8;
state->regData[rd].o |= REG_VAL_ARITHMETIC; state->regData[rd].o |= REG_VAL_ARITHMETIC;
break; break;
} }