From: Tom de Vries Date: Wed, 3 Sep 2025 14:29:37 +0000 (+0200) Subject: [gdb/testsuite] Fix clean_restart in gdb.gdb X-Git-Tag: gdb-17-branchpoint~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f88dd198785834416bf387bf86209fd33a22aec;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Fix clean_restart in gdb.gdb Fix clean_restart in the test-cases in gdb.gdb. Tested on x86_64-linux. --- diff --git a/gdb/testsuite/gdb.gdb/index-file.exp b/gdb/testsuite/gdb.gdb/index-file.exp index a9af2118143..ee5b6451274 100644 --- a/gdb/testsuite/gdb.gdb/index-file.exp +++ b/gdb/testsuite/gdb.gdb/index-file.exp @@ -39,7 +39,8 @@ if { $filename eq "" } { with_timeout_factor $timeout_factor { # Start GDB, load FILENAME. - clean_restart $filename + clean_restart + gdb_load $filename } # Record how many worker threads GDB is using. diff --git a/gdb/testsuite/gdb.gdb/unittest.exp b/gdb/testsuite/gdb.gdb/unittest.exp index 795a32bb4f9..38955ca34f9 100644 --- a/gdb/testsuite/gdb.gdb/unittest.exp +++ b/gdb/testsuite/gdb.gdb/unittest.exp @@ -63,7 +63,7 @@ proc run_selftests { binfile } { gdb_exit gdb_start } else { - clean_restart ${binfile} + clean_restart ${::testfile} } if { [is_remote host] } {