summaryrefslogtreecommitdiff
path: root/Debugger
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-07-12 09:17:45 +0800
committerTat-Chee Wan (USM)2011-07-12 09:17:45 +0800
commit09b1c9c95f54b58f1d08fedc17b23479c7f5894c (patch)
treed770917038bc822ff3494fec99ba72436137fae6 /Debugger
parent7cb1f500462a6e4ab49fc617f9f9be6d2ec0545c (diff)
more logic bugs in arm loop branch test
Diffstat (limited to 'Debugger')
-rw-r--r--Debugger/debug_test.S4
1 files changed, 2 insertions, 2 deletions
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