binutils-gdb/gdb/testsuite/gdb.mi
Simon Marchi 7cb2893dfa gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS
When running

    make check TESTS="gdb.mi/mi-nonstop-exit.exp" RUNTESTFLAGS="--target_board=native-extended-gdbserver"

We get:

    220^error,msg="Unexpected vCont reply in non-stop mode: T05swbreak:;06:60d5ffffff7f0000;07:d0d2ffffff7f0000;10:5b57fdf7ff7f0000;thread:p2a4eed.2a4eed;core    :4;"^M
    (gdb) ^M
    UNRESOLVED: gdb.mi/mi-nonstop-exit.exp: first run: unable to start target

This is because non-stop is enabled using "-gdb-set non-stop 1".  This
doesn't work with the native-extended-gdbserver board, because with that
board GDB connects to GDBserver as soon as it's started.  Non-stop needs
to be enabled before connecting.

The usual pattern to follow is to set non-stop on the command line, like
gdb.mi/mi-nonstop.exp does.  Change the non-stop MI tests to use that
pattern.

The results diff when running gdb.mi/*.exp is:

    -# of expected passes           2877
    +# of expected passes           2938
     # of unexpected failures       34
     # of expected failures         8
     # of known failures            13
     # of unresolved testcases      4
     # of unsupported tests         1
    -# of duplicate test names      34
    +# of duplicate test names      35

gdb/testsuite/ChangeLog:

	* gdb.mi/mi-nonstop-exit.exp: Enable non-stop through GDBFLAGS.
	* gdb.mi/mi-ns-stale-regcache.exp: Likewise.
	* gdb.mi/mi-nsintrall.exp: Likewise.
	* gdb.mi/mi-nsmoribund.exp: Likewise.
	* gdb.mi/mi-nsthrexec.exp: Likewise.
	* gdb.mi/mi-watch-nonstop.exp: Likewise.

Change-Id: Ic2736bedea8d448eee8c2b534d26b2427f6b4d27
2020-11-18 14:58:44 -05:00
..
array.f Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
basics.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ChangeLog-1999-2003
dw2-ref-missing-frame-func.c [gdb/testsuite] Fix .debug_ranges in gdb.mi/dw2-ref-missing-frame-func.c 2020-04-22 14:38:35 +02:00
dw2-ref-missing-frame-main.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dw2-ref-missing-frame.exp [gdb/testsuite] Fix .debug_ranges in gdb.mi/dw2-ref-missing-frame-func.c 2020-04-22 14:38:35 +02:00
dw2-ref-missing-frame.S Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb669.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
gdb680.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb701.c
gdb701.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
gdb792.cc
gdb792.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
gdb2549.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
list-thread-groups-available.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
list-thread-groups-available.exp [gdb/testsuite] Fix tcl error in gdb.mi/list-thread-groups-available.exp 2020-03-03 10:50:07 +01:00
list-thread-groups-no-inferior.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi2-amd64-entry-value.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi2-amd64-entry-value.exp Introduce mi_runto_main 2020-10-13 22:28:03 +01:00
mi2-amd64-entry-value.s Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi2-cli-display.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi2-cli-display.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi2-prompt.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi2-var-child.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-async-run.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-async-run.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-async.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-basics.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-break-qualified.cc Add MI "-break-insert --qualified" 2020-09-13 18:02:19 +01:00
mi-break-qualified.exp Add MI "-break-insert --qualified" 2020-09-13 18:02:19 +01:00
mi-break.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-breakpoint-changed.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-breakpoint-multiple-locations.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-breakpoint-multiple-locations.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-catch-cpp-exceptions.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-catch-cpp-exceptions.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-catch-load-so.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-catch-load.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-catch-load.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-cli.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-cmd-error.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-cmd-param-changed.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-complete.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-complete.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-condbreak-call-thr-state-mt.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-condbreak-call-thr-state-st.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-condbreak-call-thr-state.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-condbreak-call-thr-state.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-console.c gdb/testsuite: Explicitly return from main 2020-09-13 22:47:01 +01:00
mi-console.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-detach.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-disassemble.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-dprintf-pending.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-dprintf-pending.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-dprintf-pendshr.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-dprintf.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-dprintf.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-editing.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-eval.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-exec-run.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-exit-code.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-exit-code.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-file-transfer.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-file.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-fill-memory.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-fortran-modules-2.f90 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-fortran-modules.exp Add skip_fortran_tests to two Fortran testcases 2020-10-27 16:54:38 +00:00
mi-fortran-modules.f90 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-frame-regs.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-fullname-deleted.exp Fix gdb.mi/mi-fullname-deleted.exp with Clang 2020-10-21 09:54:31 +01:00
mi-hack-cli.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-i-cmd.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-info-os.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-inheritance-syntax-error.cc
mi-inheritance-syntax-error.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-language.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-linespec-err-cp.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-linespec-err-cp.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-logging.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-memory-changed.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-nonstop-exit.exp gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS 2020-11-18 14:58:44 -05:00
mi-nonstop.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-ns-stale-regcache.exp gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS 2020-11-18 14:58:44 -05:00
mi-nsintrall.exp gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS 2020-11-18 14:58:44 -05:00
mi-nsmoribund.exp gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS 2020-11-18 14:58:44 -05:00
mi-nsthrexec.exp gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS 2020-11-18 14:58:44 -05:00
mi-pending.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-pending.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-pendshr2.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-pendshr.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-pthreads.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-read-memory.c gdb/testsuite: Explicitly return from main 2020-09-13 22:47:01 +01:00
mi-read-memory.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-record-changed.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-reg-undefined.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-reg-undefined.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-reg-undefined.S Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-regs.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-return.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-reverse.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-simplerun.exp gdb/testsuite/: Use "-qualified" in explicit "break main", etc. 2020-10-13 22:34:26 +01:00
mi-solib.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-stack.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-stack.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-start.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-start.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-stepi.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-stepn.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-stepn.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-sym-info-1.c Fix testcases with required but unreferenced functions and variables 2020-10-12 10:35:23 +01:00
mi-sym-info-2.c Fix testcases with required but unreferenced functions and variables 2020-10-12 10:35:23 +01:00
mi-sym-info.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-syn-frame.c Use volatile pointers when attempting to trigger SIGSEGVs 2020-07-13 14:47:44 +01:00
mi-syn-frame.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-threads-interrupt.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-threads-interrupt.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-undefined-cmd.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-until.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-block.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-child-f.exp gdb/fortran: Allow Flang MAIN_ in Fortran testing 2020-05-11 00:48:10 +05:30
mi-var-child.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-child.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-cmd.exp Introduce mi_runto_main 2020-10-13 22:28:03 +01:00
mi-var-cp.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-cp.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-create-rtti.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-create-rtti.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
mi-var-display.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-invalidate.exp Introduce mi_runto_main 2020-10-13 22:28:03 +01:00
mi-var-list-children-invalid-grandchild.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-list-children-invalid-grandchild.exp Introduce mi_runto_main 2020-10-13 22:28:03 +01:00
mi-var-rtti.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-var-rtti.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-vla-c99.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-vla-fortran.exp Add skip_fortran_tests to two Fortran testcases 2020-10-27 16:54:38 +00:00
mi-watch-nonstop.exp gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS 2020-11-18 14:58:44 -05:00
mi-watch.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
new-ui-mi-sync.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
new-ui-mi-sync.exp Introduce mi_runto_main 2020-10-13 22:28:03 +01:00
non-stop-exit.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
non-stop.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ns-stale-regcache.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nsintrall.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nsmoribund.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nsthrexec.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pending.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pendshr1.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pendshr2.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pr11022.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pr11022.exp Eliminate mi_run_to_main, introduce mi_clean_restart 2020-10-13 22:34:54 +01:00
pthreads.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
solib-lib.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
solib-main.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
testcmds
until.c
user-selected-context-sync.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
user-selected-context-sync.exp Introduce mi_runto_main 2020-10-13 22:28:03 +01:00
var-cmd.c gdb.mi/var-cmd.c C++ify 2020-09-18 00:06:39 +01:00
vla.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
vla.f90 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
watch-nonstop.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00