aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/status-stop.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-12-12 02:11:45 +0000
committerYao Qi <yao@codesourcery.com>2011-12-12 02:11:45 +0000
commitff7d1690b4638a5c7302cd6cfdb84eb3aa23cbbd (patch)
treed34d103baac7aec3d2ec04ea3bbe7662316c9c88 /gdb/testsuite/gdb.trace/status-stop.exp
parentb5de74e22ee661c8d41b28c6e456cdd07e5289f9 (diff)
downloadgdb-ff7d1690b4638a5c7302cd6cfdb84eb3aa23cbbd.zip
gdb-ff7d1690b4638a5c7302cd6cfdb84eb3aa23cbbd.tar.gz
gdb-ff7d1690b4638a5c7302cd6cfdb84eb3aa23cbbd.tar.bz2
2011-12-11 Yao Qi <yao@codesourcery.com>
* gdb.trace/status-stop.exp: Skip it if target doesn't support trace.
Diffstat (limited to 'gdb/testsuite/gdb.trace/status-stop.exp')
-rw-r--r--gdb/testsuite/gdb.trace/status-stop.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/status-stop.exp b/gdb/testsuite/gdb.trace/status-stop.exp
index 6c92b75..74ded23 100644
--- a/gdb/testsuite/gdb.trace/status-stop.exp
+++ b/gdb/testsuite/gdb.trace/status-stop.exp
@@ -27,6 +27,16 @@ if [prepare_for_testing $expfile $executable $srcfile \
return -1
}
+if ![runto_main] {
+ fail "Can't run to main to check for trace support"
+ return -1
+}
+
+if ![gdb_target_supports_trace] {
+ unsupported "target does not support trace"
+ return -1;
+}
+
# Verify that the sequence of commands "tstart tstop tstart" works well.
proc test_tstart_tstop_tstart { } {