]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.ada/array_bounds.exp
[testsuite/gdb.ada] simplify some testcases by using clean_restart.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.ada / array_bounds.exp
index b25d6ea805c7b86b8a8d6a8d2c37254abec8ebb7..cc63c4205fdb0e7615e85cbe2f50f015940b33fb 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 "STOP" ${testdir}/bar.adb]
 if ![runto "bar.adb:$bp_location" ] then {