aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/save-trace.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 10:18:01 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:31 -0700
commita7e727aea73a6aef4b7fef4cf8fb958f3438d84d (patch)
tree16a5ab7669c756ffd80c14519fda90432702f9ef /gdb/testsuite/gdb.trace/save-trace.exp
parent49e118b61f07812235faec67cc783a0e866c3ff8 (diff)
downloadgdb-a7e727aea73a6aef4b7fef4cf8fb958f3438d84d.zip
gdb-a7e727aea73a6aef4b7fef4cf8fb958f3438d84d.tar.gz
gdb-a7e727aea73a6aef4b7fef4cf8fb958f3438d84d.tar.bz2
Use clean_restart in gdb.trace
Change gdb.trace to use clean_restart more consistently.
Diffstat (limited to 'gdb/testsuite/gdb.trace/save-trace.exp')
-rw-r--r--gdb/testsuite/gdb.trace/save-trace.exp8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.trace/save-trace.exp b/gdb/testsuite/gdb.trace/save-trace.exp
index 71a094a..501e171 100644
--- a/gdb/testsuite/gdb.trace/save-trace.exp
+++ b/gdb/testsuite/gdb.trace/save-trace.exp
@@ -18,9 +18,6 @@
load_lib "trace-support.exp"
-gdb_exit
-gdb_start
-
standard_testfile actions.c
require gdb_trace_common_supports_arch
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
@@ -28,11 +25,8 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
untested "failed to compile"
return -1
}
-gdb_reinitialize_dir $srcdir/$subdir
-
-# If testing on a remote host, download the source file.
-# remote_download host $srcdir/$subdir/$srcfile
+clean_restart
gdb_file_cmd $binfile
# define relative source line numbers: