From: Tom Tromey Date: Wed, 25 Jan 2023 21:41:57 +0000 (-0700) Subject: Use clean_restart in gdb.perf X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=396b136e89e1a5b35a3b57a8662d190d1d9eef6d;p=binutils-gdb.git Use clean_restart in gdb.perf Change gdb.perf to use clean_restart more consistently. --- 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