Parts of gdb.btrace/enable.exp are only valid for native debug. The check for
skip_gdbserver_tests is done while GDB is running, though, which causes it to
fail with --target_board=native-extended-gdbserver. Exit GDB before that check.
testsuite/
* gdb.btrace/enable.exp: Call gdb_exit before skip_gdbserver_tests.
+2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
+
+ * gdb.btrace/enable.exp: Call gdb_exit before
+ skip_gdbserver_tests.
+
2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
* gdb.btrace/non-stop.exp: Add '-ex "set non-stop on"' to
# continue to the end and make sure we don't die
gdb_test "continue" ".*Inferior.*exited.*" "continue to end"
+# skip_gdbserver_tests requires GDB not running.
+gdb_exit
+
# skip the rerun test when using gdbserver
# otherwise rerun twice, target should be automatically disabled
load_lib gdbserver-support.exp