From: Tom de Vries Date: Wed, 3 Sep 2025 10:31:20 +0000 (+0200) Subject: [gdb/testsuite] Fix clean_restart in gdb.perf X-Git-Tag: gdb-17-branchpoint~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0dd75e40ad8b7b062a7832f04e3eabc34e74ecc;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Fix clean_restart in gdb.perf Fix clean_restart in the test-cases in gdb.perf. Tested on x86_64-linux using check-perf. --- diff --git a/gdb/testsuite/gdb.perf/backtrace.exp b/gdb/testsuite/gdb.perf/backtrace.exp index 9ec099ffe01..212298e55d6 100644 --- a/gdb/testsuite/gdb.perf/backtrace.exp +++ b/gdb/testsuite/gdb.perf/backtrace.exp @@ -47,7 +47,7 @@ PerfTest::assemble { } { global binfile - clean_restart $binfile + clean_restart $::testfile if ![runto_main] { return -1 diff --git a/gdb/testsuite/gdb.perf/single-step.exp b/gdb/testsuite/gdb.perf/single-step.exp index 920cf9d83d1..354203ed136 100644 --- a/gdb/testsuite/gdb.perf/single-step.exp +++ b/gdb/testsuite/gdb.perf/single-step.exp @@ -39,7 +39,7 @@ PerfTest::assemble { return 0 } { global binfile - clean_restart $binfile + clean_restart $::testfile if ![runto_main] { return -1 diff --git a/gdb/testsuite/gdb.perf/skip-command.exp b/gdb/testsuite/gdb.perf/skip-command.exp index b82d31824ac..99ecad8f889 100644 --- a/gdb/testsuite/gdb.perf/skip-command.exp +++ b/gdb/testsuite/gdb.perf/skip-command.exp @@ -120,7 +120,7 @@ PerfTest::assemble { return 0 } { global binfile - clean_restart $binfile + clean_restart $::testfile return 0 } { global SKIP_STEP_COUNT SKIP_DIRECTIVE_COUNT diff --git a/gdb/testsuite/gdb.perf/skip-prologue.exp b/gdb/testsuite/gdb.perf/skip-prologue.exp index 50df93a1018..dbeb9f8ecb3 100644 --- a/gdb/testsuite/gdb.perf/skip-prologue.exp +++ b/gdb/testsuite/gdb.perf/skip-prologue.exp @@ -51,7 +51,7 @@ PerfTest::assemble { global binfile global gdb_prompt - clean_restart $binfile + clean_restart $::testfile if ![runto_main] { return -1 diff --git a/gdb/testsuite/gdb.perf/solib.exp b/gdb/testsuite/gdb.perf/solib.exp index 45f9330d600..1775bf6b856 100644 --- a/gdb/testsuite/gdb.perf/solib.exp +++ b/gdb/testsuite/gdb.perf/solib.exp @@ -72,7 +72,7 @@ PerfTest::assemble { } { global binfile - clean_restart $binfile + clean_restart $::testfile if ![runto_main] { return -1 diff --git a/gdb/testsuite/gdb.perf/template-breakpoints.exp b/gdb/testsuite/gdb.perf/template-breakpoints.exp index 7d66e0f12e7..db57731f402 100644 --- a/gdb/testsuite/gdb.perf/template-breakpoints.exp +++ b/gdb/testsuite/gdb.perf/template-breakpoints.exp @@ -47,7 +47,7 @@ PerfTest::assemble { } { global binfile - clean_restart $binfile + clean_restart $::testfile if ![runto_main] { return -1