]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.ada/arrayidx.exp
[testsuite/gdb.ada] simplify some testcases by using clean_restart.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.ada / arrayidx.exp
index 350f19e28712e43f97b1cbe66bb7c0d3dfe2f006..9d271946cdbeacd4c2eb7ac4f3d080a872975350 100644 (file)
@@ -31,10 +31,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {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}/p.adb]
 runto "p.adb:$bp_location"