[21/27] Use clean_restart in gdb.stabs

Message ID 20230125224614.1006886-22-tom@tromey.com
State Committed
Headers
Series Many small testsuite cleanups |

Commit Message

Tom Tromey Jan. 25, 2023, 10:46 p.m. UTC
  Change gdb.stabs to use clean_restart more consistently.
---
 gdb/testsuite/gdb.stabs/weird.exp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
  

Patch

diff --git a/gdb/testsuite/gdb.stabs/weird.exp b/gdb/testsuite/gdb.stabs/weird.exp
index f89595b0789..2375e4c96e4 100644
--- a/gdb/testsuite/gdb.stabs/weird.exp
+++ b/gdb/testsuite/gdb.stabs/weird.exp
@@ -273,10 +273,7 @@  if  { [gdb_compile "${srcfile}" "${binfile}" object ""] != "" } {
 
 remote_file build delete ${srcfile}
 
-# Start with a fresh gdb
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
 
 set binfile [gdb_remote_download host ${binfile} \
 		 [standard_output_file object.o]]