]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix clean_restart <absolute filename> in gdb.arch/arm*.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/arm*.exp.

Tested on:
- arm-linux, target boards unix/-marm and unix/-mthumb
- aarch64-linux

gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp
gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp
gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp

index 892cfba0204e7d8eb9dd1f4acbcbef55dd303578..9cbf71d7f7186af521138f269bdf9f85c987a92c 100644 (file)
@@ -34,7 +34,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
     return -1
 }
 
-clean_restart ${binfile}
+clean_restart $testfile
 
 if {![runto_main]} {
     return
index c474a99fa9f1577b8282d7828447bd616d45d21a..4cbb12e86c840f24071702a4c6a325f652f87f0a 100644 (file)
@@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
     return -1
 }
 
-clean_restart ${binfile}
+clean_restart $testfile
 
 if {![runto_main]} {
     return
index 15c4050dca158980b71a345e68cc1c5f1259c434..32f085acc8d0f225b35e6edbc7bc2c98afd55793 100644 (file)
@@ -33,7 +33,7 @@ if { [build_executable "failed to prepare" ${testfile} ${srcfile} \
 
 save_vars { GDBFLAGS } {
     append GDBFLAGS " --readnever"
-    if { [clean_restart ${binfile}] == -1 } {
+    if { [clean_restart $testfile] == -1 } {
        return -1
     }
 }