aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.stabs/weird.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 14:41:23 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:32 -0700
commitc852f1aeca4106d9bcc5d0cd8c0d595250af7184 (patch)
treef2d4aaa20cfdc7964fb2d9d09e6db4adcfea42c3 /gdb/testsuite/gdb.stabs/weird.exp
parent1d6704e0ce0f656dfb5e2745ea7bf701b3e511f6 (diff)
downloadfsf-binutils-gdb-c852f1aeca4106d9bcc5d0cd8c0d595250af7184.zip
fsf-binutils-gdb-c852f1aeca4106d9bcc5d0cd8c0d595250af7184.tar.gz
fsf-binutils-gdb-c852f1aeca4106d9bcc5d0cd8c0d595250af7184.tar.bz2
Use clean_restart in gdb.stabs
Change gdb.stabs to use clean_restart more consistently.
Diffstat (limited to 'gdb/testsuite/gdb.stabs/weird.exp')
-rw-r--r--gdb/testsuite/gdb.stabs/weird.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.stabs/weird.exp b/gdb/testsuite/gdb.stabs/weird.exp
index f89595b..2375e4c 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]]