diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/async-shell.exp | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/continue-all-already-running.exp | 9 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/moribund-step.exp | 9 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp | 7 |
5 files changed, 27 insertions, 13 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3a7fc0c..e48a6fe0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-12-16 Simon Marchi <simon.marchi@efficios.com> + + * gdb.base/async-shell.exp: Enable non-stop through GDBFLAGS. + * gdb.base/continue-all-already-running.exp: Likewise. + * gdb.base/moribund-step.exp: Likewise. + * gdb.base/step-sw-breakpoint-adjust-pc.exp: Likewise. + 2020-12-16 Tom de Vries <tdevries@suse.de> * gdb.base/batch-preserve-term-settings.exp: diff --git a/gdb/testsuite/gdb.base/async-shell.exp b/gdb/testsuite/gdb.base/async-shell.exp index 001a9ed..ad7813a 100644 --- a/gdb/testsuite/gdb.base/async-shell.exp +++ b/gdb/testsuite/gdb.base/async-shell.exp @@ -25,13 +25,15 @@ if [use_gdb_stub] { return 0 } -if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { - return -1 +save_vars { GDBFLAGS } { + set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\"" + if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { + return -1 + } } set gdbindex_warning_re "warning: Skipping \[^\r\n\]+ \\.gdb_index section \[^\r\n\]*\r\nDo \"set use-deprecated-index-sections on\" before the file is read\r\nto use the section anyway\\." -gdb_test_no_output "set non-stop on" gdb_test "run &" "Starting program: \[^\r\n\]*(\r\n$gdbindex_warning_re)?" # `sleep 5' here would workaround the bug, do not sleep here. diff --git a/gdb/testsuite/gdb.base/continue-all-already-running.exp b/gdb/testsuite/gdb.base/continue-all-already-running.exp index cfd586f..3943581 100644 --- a/gdb/testsuite/gdb.base/continue-all-already-running.exp +++ b/gdb/testsuite/gdb.base/continue-all-already-running.exp @@ -18,12 +18,13 @@ standard_testfile -if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { - return -1 +save_vars { GDBFLAGS } { + set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\"" + if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { + return -1 + } } -gdb_test_no_output "set non-stop on" - if ![runto_main] { return } diff --git a/gdb/testsuite/gdb.base/moribund-step.exp b/gdb/testsuite/gdb.base/moribund-step.exp index 2e783d3..24ffb61 100644 --- a/gdb/testsuite/gdb.base/moribund-step.exp +++ b/gdb/testsuite/gdb.base/moribund-step.exp @@ -20,12 +20,13 @@ if { ![support_displaced_stepping] } { return -1 } -if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { - return -1 +save_vars { GDBFLAGS } { + set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\"" + if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } { + return -1 + } } -gdb_test_no_output "set non-stop on" - if ![runto_main] { return } diff --git a/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp b/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp index 7b9a02c..5282008 100644 --- a/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp +++ b/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp @@ -32,10 +32,13 @@ proc test {non_stop displaced always_inserted} { global binfile global linenum_for_user_bp global linenum_for_step_resume + global GDBFLAGS - clean_restart $binfile + save_vars { GDBFLAGS } { + set GDBFLAGS "$GDBFLAGS -ex \"set non-stop $non_stop\"" + clean_restart $binfile + } - gdb_test_no_output "set non-stop $non_stop" gdb_test_no_output "set displaced-stepping $displaced" gdb_test_no_output "set breakpoint always-inserted $always_inserted" |