From 09b1c9c95f54b58f1d08fedc17b23479c7f5894c Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Tue, 12 Jul 2011 09:17:45 +0800 Subject: more logic bugs in arm loop branch test --- Debugger/debug_test.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Debugger') diff --git a/Debugger/debug_test.S b/Debugger/debug_test.S index 0bedca2..30d7604 100644 --- a/Debugger/debug_test.S +++ b/Debugger/debug_test.S @@ -43,12 +43,12 @@ dbg__test_arm_instrstep: stmfd sp!, {lr} bl dbg__test_arm_instr_sub1 ldr r1, =test_arm_3 /* R1: pointer to test_arm_3 */ - ldr r2, =test_arm_3 /* R2: pointer to test_arm_3 (should not be triggered) */ + ldr r2, =test_arm_2 /* R2: pointer to test_arm_2 */ mov pc, r1 test_arm_1: subs r0, r0, #1 - addne pc, r1, #4 /* If R0 > 0, keep branching to a new location */ + addne pc, r2, #4 /* If R0 > 0, keep branching to a new location */ /* else R0 == 0 */ b exit_dbg__test_arm_instrstep -- cgit v1.2.3