Eliminate mi_run_to_main, introduce mi_clean_restart
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-logging.exp
index 45401432ee562c35b7e01f451bf054d2d001fc69..6da365ef68ed191c1dea1f8bb21cd6bbea26b0b9 100644 (file)
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-gdb_exit
-if [mi_gdb_start] {
-    continue
-}
-
 standard_testfile basics.c
 set opts {debug}
 
@@ -29,7 +24,9 @@ if [build_executable $testfile.exp $testfile $srcfile $opts] {
     return -1
 }
 
-if {[mi_run_to_main] < 0} {
+mi_clean_restart $binfile
+
+if {[mi_runto_main] < 0} {
     return -1
 }
 
This page took 0.029132 seconds and 4 git commands to generate.