* gdb.mi/mi-nonstop.exp: Don't check isnative. Use
authorPedro Alves <palves@redhat.com>
Thu, 2 Apr 2009 15:43:10 +0000 (15:43 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 2 Apr 2009 15:43:10 +0000 (15:43 +0000)
commit56a8e183d289735ab75fa73260ec60523522ba18
tree6c7265dfd82e016f30997d743c143361ced69e2b
parent8b747e1a27742bcf9075999a49cf6ed7408e0a31
* gdb.mi/mi-nonstop.exp: Don't check isnative.  Use
mi_run_to_main.  Skip thread exit test on remote targets.
* gdb.mi/mi-nsintrall.exp: Don't check isnative.  Use
mi_run_to_main.
* gdb.mi/mi-nsmoribund.exp: Don't check isnative.  Use
mi_run_to_main.
* lib/mi-support.exp (mi_gdb_target_cmd): Remove trailing anchor
when expecting ^connected.  Detect when the target doesn't support
non-stop mode.
(mi_run_cmd): Detect if non-stop mode was requested by isn't
supported.  Return -1 on error, 0 on success.
(mi_runto_helper): Don't expect a stop if mi_run_cmd failed.
(mi_runto): Return mi_runto_helper's result explicitly.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-nonstop.exp
gdb/testsuite/gdb.mi/mi-nsintrall.exp
gdb/testsuite/gdb.mi/mi-nsmoribund.exp
gdb/testsuite/lib/mi-support.exp