aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.perf/disassemble.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 14:41:57 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:32 -0700
commit396b136e89e1a5b35a3b57a8662d190d1d9eef6d (patch)
tree1c0339e41b30cee788f975c3c682b5ec0df8fc05 /gdb/testsuite/gdb.perf/disassemble.exp
parent5ae820f38ffab179b3cee09c0d6fa54c58aa0fa4 (diff)
downloadgdb-396b136e89e1a5b35a3b57a8662d190d1d9eef6d.zip
gdb-396b136e89e1a5b35a3b57a8662d190d1d9eef6d.tar.gz
gdb-396b136e89e1a5b35a3b57a8662d190d1d9eef6d.tar.bz2
Use clean_restart in gdb.perf
Change gdb.perf to use clean_restart more consistently.
Diffstat (limited to 'gdb/testsuite/gdb.perf/disassemble.exp')
-rw-r--r--gdb/testsuite/gdb.perf/disassemble.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.perf/disassemble.exp b/gdb/testsuite/gdb.perf/disassemble.exp
index 0677547..94a32fb 100644
--- a/gdb/testsuite/gdb.perf/disassemble.exp
+++ b/gdb/testsuite/gdb.perf/disassemble.exp
@@ -29,12 +29,9 @@ PerfTest::assemble {
# Don't have compilation step.
return 0
} {
- global srcdir subdir
global binfile
- gdb_exit
- gdb_start
- gdb_reinitialize_dir $srcdir/$subdir
+ clean_restart
# When GDB is debugging GDB, the prompt is changed to "(top-gdb) ".
# In order to avoid the confusion of pattern matching, set the