Use clean_restart in gdb.go
authorTom Tromey <tom@tromey.com>
Wed, 25 Jan 2023 21:41:39 +0000 (14:41 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 27 Jan 2023 01:28:32 +0000 (18:28 -0700)
Change gdb.go to use clean_restart more consistently.

gdb/testsuite/gdb.go/print.exp

index 893fa30e7be9a46375b18f398a09b9d5fd24677c..8fcbf12e5e6688155c797d38d191b583428b0af5 100644 (file)
@@ -56,11 +56,7 @@ proc test_float_rejected {} {
     test_print_reject "p 1.1ll"
 }
 
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
 
 if [set_lang_go] {
     test_float_accepted