2011-12-11 Yao Qi <yao@codesourcery.com>
authorYao Qi <yao@codesourcery.com>
Mon, 12 Dec 2011 02:11:45 +0000 (02:11 +0000)
committerYao Qi <yao@codesourcery.com>
Mon, 12 Dec 2011 02:11:45 +0000 (02:11 +0000)
* gdb.trace/status-stop.exp: Skip it if target doesn't support trace.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/status-stop.exp

index f95ac4d3d8cb3e8b860f352fa350043096b606ed..a6ee8c53b46e3dec8631c47e97257113881bd0b3 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-11  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.trace/status-stop.exp: Skip it if target doesn't support trace.
+
 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust
index 6c92b750bd62b0ec61748b6fe41559774a80f66b..74ded230fdf056493fbc068ec8f26bd8a0f7e8b0 100644 (file)
@@ -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 { } {