]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.python/py-template.exp
Use clean_restart in gdb.python
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.python / py-template.exp
index a89a813578d46931cf7bd6782318e5385a6e8e5e..9bc392dcb8d515536b079a6ec20b8c25362d215a 100644 (file)
@@ -25,11 +25,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
     return -1
 }
 
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
 
 proc test_template_arg {exefile type} {
     global testfile srcdir subdir srcfile