]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.ada/mod_from_name.exp
[testsuite/gdb.ada] simplify some testcases by using clean_restart.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.ada / mod_from_name.exp
index ded0ea12690afd630e46e33e94256d6682c89428..a68d9ee3a61be76d213ad4bc561d6c0ed1c11707 100644 (file)
@@ -29,10 +29,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
   return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
 if ![runto "foo.adb:$bp_location" ] then {