From: Yao Qi Date: Mon, 12 Dec 2011 02:11:45 +0000 (+0000) Subject: 2011-12-11 Yao Qi X-Git-Tag: gdb_7_4-2011-12-13-branchpoint~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff7d1690b4638a5c7302cd6cfdb84eb3aa23cbbd;p=thirdparty%2Fbinutils-gdb.git 2011-12-11 Yao Qi * gdb.trace/status-stop.exp: Skip it if target doesn't support trace. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f95ac4d3d8c..a6ee8c53b46 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-12-11 Yao Qi + + * gdb.trace/status-stop.exp: Skip it if target doesn't support trace. + 2011-12-11 Joel Brobecker * gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust diff --git a/gdb/testsuite/gdb.trace/status-stop.exp b/gdb/testsuite/gdb.trace/status-stop.exp index 6c92b750bd6..74ded230fdf 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 { } {