summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-10-13 13:15:04 +0100
committerPedro Alves <palves@redhat.com>2017-10-13 13:15:04 +0100
commit42f1b1617e4f8c8f485318897c5154cbff58eeb0 (patch)
tree45642c52c1b71673b6c620936985fde149a76c39
parent8d6ef72b0470dfb1133525c8c4556d3578744ac4 (diff)
downloadbinutils-gdb-42f1b1617e4f8c8f485318897c5154cbff58eeb0.tar.gz
Fix gdb.python/py-evthreads.exp with --target_board=native-extended-gdbserver
Fixes: Running ..../src/gdb/testsuite/gdb.python/py-evthreads.exp ... FAIL: gdb.python/py-evthreads.exp: run to breakpoint 1 FAIL: gdb.python/py-evthreads.exp: reached breakpoint 2 FAIL: gdb.python/py-evthreads.exp: thread 2 FAIL: gdb.python/py-evthreads.exp: reached breakpoint 3 FAIL: gdb.python/py-evthreads.exp: thread 3 FAIL: gdb.python/py-evthreads.exp: continue thread 1 [... cascading time outs ...] By following the usual pattern that makes sure that non-stop is enabled before connecting to gdbserver. gdb/testsuite/ChangeLog: 2017-10-13 Pedro Alves <palves@redhat.com> * gdb.python/py-evthreads.exp: Start GDB with "set non-stop on" already.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.python/py-evthreads.exp7
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 4c011024757..e8afca552f1 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2017-10-13 Pedro Alves <palves@redhat.com>
+ * gdb.python/py-evthreads.exp: Start GDB with "set non-stop on"
+ already.
+
+2017-10-13 Pedro Alves <palves@redhat.com>
+
* gdb.python/py-evsignal.exp: Check gdb_protocol instead of
is_remote.
diff --git a/gdb/testsuite/gdb.python/py-evthreads.exp b/gdb/testsuite/gdb.python/py-evthreads.exp
index 64b2af5fef4..31b86abf45f 100644
--- a/gdb/testsuite/gdb.python/py-evthreads.exp
+++ b/gdb/testsuite/gdb.python/py-evthreads.exp
@@ -32,14 +32,17 @@ set pyfile ${srcdir}/${subdir}/py-events.py
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
return -1
}
-clean_restart $testfile
+
+save_vars { GDBFLAGS } {
+ append GDBFLAGS " -ex \"set non-stop on\""
+ clean_restart $testfile
+}
if { [skip_python_tests] } { continue }
gdb_test_no_output "source ${pyfile}" "load python file"
gdb_test "test-events" "Event testers registered."
-gdb_test_no_output "set non-stop on"
gdb_breakpoint "main"
gdb_breakpoint "thread2"