]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix clean_restart <absolute filename> in gdb.arch/thumb*.exp
authorTom de Vries <tdevries@suse.de>
Thu, 4 Sep 2025 14:15:26 +0000 (16:15 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 4 Sep 2025 14:15:26 +0000 (16:15 +0200)
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.

gdb/testsuite/gdb.arch/pr25124.exp
gdb/testsuite/gdb.arch/thumb-prologue.exp
gdb/testsuite/gdb.arch/thumb2-it.exp

index 4c437166aca07af8e91a09f6fb4f4bb35e552c08..4e7c114e2f0603e5f057fe0f48d6a65d3cde7320 100644 (file)
@@ -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" \
index 112c1113f808b66be925438a931ea6d5d15c2a10..2ee82fb25dff04037bac5a45ff28d9efc907673c 100644 (file)
@@ -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.
index 49031e1b0e68013fec689bf7b1055076c3801099..e6ef06d8e5753f8734db9382a4b89eaefd172ccb 100644 (file)
@@ -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