aboutsummaryrefslogtreecommitdiff
path: root/Debugger
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-07-12 07:20:14 +0800
committerTat-Chee Wan (USM)2011-07-12 07:20:14 +0800
commitc7d4fd94a369b757bebe3ee57512bd535dba3a36 (patch)
tree7e150f28bc4ddce9af7fb0942f792de62eb90ebe /Debugger
parent1306993ca037f6a51dbf0aeab9e162e5878486c7 (diff)
modified debug test case for shorter loops to enable single stepping
Diffstat (limited to 'Debugger')
-rw-r--r--Debugger/debug_test.S13
1 files changed, 6 insertions, 7 deletions
diff --git a/Debugger/debug_test.S b/Debugger/debug_test.S
index e0f3cf0..104e327 100644
--- a/Debugger/debug_test.S
+++ b/Debugger/debug_test.S
@@ -54,17 +54,16 @@ test_arm_1:
test_arm_2:
sub r0, r0, #1
- cmp r0, #8
- ldrle pc, =test_arm_1
- bgt test_arm_3
- beq test_arm_2
+ cmp r0, #5
+ bgt test_arm_1
+ ldrle pc, =test_arm_2
ldr pc, =test_arm_1
test_arm_3:
/* case for r0 == 9 */
sub r0, r0, #1
- teq r0, #5
- ldreq r2, =test_arm_1
+ teq r0, #8
+ beq test_arm_1
ldrne r2, =test_arm_3
bx r2
@@ -154,7 +153,7 @@ dbg__test_thumb_instr_sub1:
.thumb_func
dbg__test_thumb_instr_sub2:
push {lr}
- mov r0, #FALSE
+ mov r1, #FALSE
pop {pc}