From 2f88dd198785834416bf387bf86209fd33a22aec Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 3 Sep 2025 16:29:37 +0200 Subject: [PATCH] [gdb/testsuite] Fix clean_restart in gdb.gdb Fix clean_restart in the test-cases in gdb.gdb. Tested on x86_64-linux. --- gdb/testsuite/gdb.gdb/index-file.exp | 3 ++- gdb/testsuite/gdb.gdb/unittest.exp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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] } { -- 2.47.3