[binutils-gdb] [gdb/testsuite] Fix clean_restart <absolute filename> in gdb.arch/thumb*.exp

Tom de Vries vries@sourceware.org
Thu Sep 4 14:16:01 GMT 2025


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

commit 40cd67be49603ddf3cc426bf133c7db0f8a55a66
Author: Tom de Vries <tdevries@suse.de>
Date:   Thu Sep 4 16:15:26 2025 +0200

    [gdb/testsuite] Fix clean_restart <absolute filename> in gdb.arch/thumb*.exp
    
    Fix clean_restart <absolute filename> in gdb.arch/thumb*.exp.
    
    Likewise in test-case gdb.arch/pr25124.exp.
    
    Tested on arm-linux, target boards unix/-marm and unix/-mthumb.

Diff:
---
 gdb/testsuite/gdb.arch/pr25124.exp        | 2 +-
 gdb/testsuite/gdb.arch/thumb-prologue.exp | 2 +-
 gdb/testsuite/gdb.arch/thumb2-it.exp      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.arch/pr25124.exp b/gdb/testsuite/gdb.arch/pr25124.exp
index 4c437166aca..4e7c114e2f0 100644
--- a/gdb/testsuite/gdb.arch/pr25124.exp
+++ b/gdb/testsuite/gdb.arch/pr25124.exp
@@ -25,7 +25,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug
     return -1
 }
 
-clean_restart $binfile
+clean_restart $testfile
 
 # Check if the disassemble ouput is correct.
 gdb_test "x /i main+8" \
diff --git a/gdb/testsuite/gdb.arch/thumb-prologue.exp b/gdb/testsuite/gdb.arch/thumb-prologue.exp
index 112c1113f80..2ee82fb25df 100644
--- a/gdb/testsuite/gdb.arch/thumb-prologue.exp
+++ b/gdb/testsuite/gdb.arch/thumb-prologue.exp
@@ -27,7 +27,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {"add
 }
 
 
-clean_restart $binfile
+clean_restart $testfile
 
 #
 # Run to `main' where we begin our tests.
diff --git a/gdb/testsuite/gdb.arch/thumb2-it.exp b/gdb/testsuite/gdb.arch/thumb2-it.exp
index 49031e1b0e6..e6ef06d8e57 100644
--- a/gdb/testsuite/gdb.arch/thumb2-it.exp
+++ b/gdb/testsuite/gdb.arch/thumb2-it.exp
@@ -24,7 +24,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug
     return -1
 }
 
-clean_restart $binfile
+clean_restart $testfile
 
 if {![runto_main]} {
     return -1


More information about the Gdb-cvs mailing list