diff options
author | Pedro Alves <pedro@palves.net> | 2020-10-11 21:58:31 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-10-12 01:45:51 +0100 |
commit | bdfbda93f2fa10e94dec6f06a08459d825213a8d (patch) | |
tree | 6430384bd8b3549c748336da21aca93f3373d6c7 /gdb/testsuite/gdb.mi/mi-detach.exp | |
parent | df47e3e9fe15a647db52361a10f726421ddd034e (diff) | |
download | binutils-gdb-users/palves/runto_main.tar.gz |
Eliminate mi_run_to_main, introduce mi_clean_restartusers/palves/runto_main
Since we now have mi_runto_main which is like runto_main, eliminate
mi_run_to_main, in favor of a new MI clean_restart counterpart --
mi_clean_restart -- and mi_runto_main.
This makes MI testcases look a bit more like CLI testcases.
gdb/testsuite/ChangeLog:
* lib/mi-support.exp (mi_clean_restart): New.
(mi_run_to_main): Delete.
All callers adjust to use mi_clean_restart / mi_runto_main.
Change-Id: I34920bab4fea1f23fb752928c2969c1f6ad714b6
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-detach.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-detach.exp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-detach.exp b/gdb/testsuite/gdb.mi/mi-detach.exp index a9b8362659b..1027488eeb4 100644 --- a/gdb/testsuite/gdb.mi/mi-detach.exp +++ b/gdb/testsuite/gdb.mi/mi-detach.exp @@ -18,11 +18,6 @@ load_lib mi-support.exp set MIFLAGS "-i=mi" -gdb_exit -if [mi_gdb_start] { - continue -} - standard_testfile basics.c if {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} { @@ -30,6 +25,7 @@ if {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} { return -1 } -mi_run_to_main +mi_clean_restart $binfile +mi_runto_main mi_gdb_test "-target-detach" "=thread-exited,id=\"1\".*=thread-group-exited,id=\"i1\".*" "detach" |