btrace, testsuite: fix extended-remote fail

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.
This commit is contained in:
Markus Metzger 2017-01-26 15:07:44 +01:00
parent 0a1c7e2881
commit 68777c2989
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -74,6 +74,9 @@ gdb_test "record btrace" "The process is already being recorded\\. Use \"record
# 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