public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use clean_restart in gdb.perf
@ 2023-01-27  1:30 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-01-27  1:30 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=396b136e89e1a5b35a3b57a8662d190d1d9eef6d

commit 396b136e89e1a5b35a3b57a8662d190d1d9eef6d
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Jan 25 14:41:57 2023 -0700

    Use clean_restart in gdb.perf
    
    Change gdb.perf to use clean_restart more consistently.

Diff:
---
 gdb/testsuite/gdb.perf/disassemble.exp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/gdb/testsuite/gdb.perf/disassemble.exp b/gdb/testsuite/gdb.perf/disassemble.exp
index 067754747ec..94a32fb0364 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-27  1:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27  1:30 [binutils-gdb] Use clean_restart in gdb.perf Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).