[PATCH 22/27] Use clean_restart in gdb.go

Tom Tromey tom@tromey.com
Wed Jan 25 22:46:09 GMT 2023


Change gdb.go to use clean_restart more consistently.
---
 gdb/testsuite/gdb.go/print.exp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gdb/testsuite/gdb.go/print.exp b/gdb/testsuite/gdb.go/print.exp
index 893fa30e7be..8fcbf12e5e6 100644
--- a/gdb/testsuite/gdb.go/print.exp
+++ b/gdb/testsuite/gdb.go/print.exp
@@ -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
-- 
2.39.1



More information about the Gdb-patches mailing list