diff options
author | Joern Rennecke <joern.rennecke@arc.com> | 2009-09-11 04:45:40 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@arc.com> | 2009-09-11 04:45:40 +0000 |
commit | c0b9c0330ac498673282832d8714d013569ca986 (patch) | |
tree | 7524276d1d63cb4ab23038ae8361a0228325863a /gdb/testsuite/gdb.arch/arc-step.exp | |
parent | 139d19ee035d132be681a95ece3bbe230664ea9c (diff) | |
download | gdb-arc-insight_6_8-branch.tar.gz |
gdb/insight for ARCompact (from Richard Stuckey)arc-insight_6_8-branch
Diffstat (limited to 'gdb/testsuite/gdb.arch/arc-step.exp')
-rw-r--r-- | gdb/testsuite/gdb.arch/arc-step.exp | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/gdb/testsuite/gdb.arch/arc-step.exp b/gdb/testsuite/gdb.arch/arc-step.exp deleted file mode 100644 index e958b5fbf61..00000000000 --- a/gdb/testsuite/gdb.arch/arc-step.exp +++ /dev/null @@ -1,83 +0,0 @@ -if $tracelevel { - strace $tracelevel -} - -# Test single-stepping zero-overhead-loops and delay slots - -if ![istarget "arc-*-*"] then { - verbose "Skipping ARC single-step tests." - return -} - -if ![istarget "*linux*"] then { - verbose "Skipping ARC linux single-step tests." - return -} - -set testfile "arc-step" -set srcfile ${testfile}.s -set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ""] != "" } { - gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." -} - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - -# -# Run to `main' where we begin our tests. -# - -gdb_test "adv _main" ".* in _main .*" "advance to _main" - -gdb_test "stepi" ".* Lmov .*" "step mov instruction" -gdb_test "p \$r0" ".*= 1" "r0 value after mov instruction" - -gdb_test "stepi" ".* Lmov_s .*" "step mov_s instruction" -gdb_test "p \$r0" ".*= 2" "r0 value after mov_s instruction" - -gdb_test "stepi" ".* Lb .*" "step b instruction" - -gdb_test "stepi" ".* Lb_s .*" "step b_s instruction" - -gdb_test "stepi" ".* Lbdotd .*" "step b.d instruction" -gdb_test "p \$r0" ".*= 5" "r0 value after b.d instruction" - -gdb_test "stepi" ".* Lbl .*" "step bl instruction" - -gdb_test "stepi" ".* Lj_sdotd .*" "step j_s.d \[blink\] instruction" -gdb_test "p \$r0" ".*= 6" "r0 value after j_s.d \[blink\] instruction" - -gdb_test "stepi" ".* Lj .*" "step j instruction" - -gdb_test "stepi" ".*" "step mov instruction" -gdb_test "stepi" ".* ZOLstart .*" "step lp instruction" - -gdb_test "p \$lp_count" ".*= 3" "lp_count value" -gdb_test "p \$lp_end - \$lp_start" \ - ".* = 8" "lp_end - lp_start == 8" - -gdb_test "p \$r0" ".* = 6" "r0 value before loop" - -# step thru the loop, checking the value of r0 - -# first iteration -gdb_test "stepi" ".* ZOLmiddle .*" "step add instruction (inside ZOL)" -gdb_test "p \$r0" ".* = 7" "r0 value after 1 iteration" -gdb_test "stepi" ".* ZOLstart .*" "step across end of ZOL" - -# second iteration -gdb_test "stepi" ".* ZOLmiddle .*" "step add instruction (inside ZOL)" -gdb_test "p \$r0" ".* = 8" "r0 value after 1 iteration" -gdb_test "stepi" ".* ZOLstart .*" "step across end of ZOL" - -# last iteration -gdb_test "stepi" ".* ZOLmiddle .*" "step add instruction (inside ZOL)" -gdb_test "p \$r0" ".* = 9" "r0 value after 1 iteration" -gdb_test "stepi" ".* ZOLend .*" "step out of end of ZOL" - -# exit(r0) -gdb_test "continue" ".*Program exited.*011.*" \ - "value of r0 on exit" |