]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use clean_restart in gdb.perf
authorTom Tromey <tom@tromey.com>
Wed, 25 Jan 2023 21:41:57 +0000 (14:41 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 27 Jan 2023 01:28:32 +0000 (18:28 -0700)
Change gdb.perf to use clean_restart more consistently.

gdb/testsuite/gdb.perf/disassemble.exp

index 067754747ece6025841b779f85fd42eb233070b2..94a32fb03643d12ee99aec1baefeec944f222975 100644 (file)
@@ -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