]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix clean_restart <absolute filename> in gdb.reverse
authorTom de Vries <tdevries@suse.de>
Tue, 2 Sep 2025 16:29:58 +0000 (18:29 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 2 Sep 2025 16:29:58 +0000 (18:29 +0200)
Fix clean_restart <absolute filename> in the test-cases in gdb.reverse.

Tested on:
- x86_64-linux, target boards unix and unix/-m32
- aarch64-linux
- ppc64le-linux
- s390x-linux

gdb/testsuite/gdb.reverse/sigall-precsave.exp
gdb/testsuite/gdb.reverse/sigall-reverse.exp
gdb/testsuite/gdb.reverse/solib-precsave.exp
gdb/testsuite/gdb.reverse/solib-reverse.exp
gdb/testsuite/gdb.reverse/step-precsave.exp
gdb/testsuite/lib/gdb.exp

index 64869c5fef1f6273de6c43710c26c7ea2ee25803..79838a0f18b1be42cc1c270b28ce033597cc6599 100644 (file)
@@ -138,7 +138,7 @@ proc test_one_sig_reverse {prevsig} {
     }
 }
 
-clean_restart $binfile
+clean_restart $::testfile
 
 runto gen_ABRT
 
index b72e098871ab04fbbcf7c4dcf2302c620a9ce975..82547d8d3351d831da5e7fad971d56a77c883d14 100644 (file)
@@ -144,7 +144,7 @@ proc test_one_sig_reverse {prevsig} {
     }
 }
 
-clean_restart $binfile
+clean_restart $::testfile
 
 runto gen_ABRT
 
index 82b08cd14e9d949436a5b566afef4b5a7ae458cc..96361673009bc49cb6d673f68b8f2ba381448b74 100644 (file)
@@ -60,7 +60,7 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable \
 # and is no longer attempted.  Instead, the test does not make assumptions
 # about whether the debug info is present or not.
 
-clean_restart $binfile
+clean_restart $::testfile
 gdb_load_shlib $library1
 gdb_load_shlib $library2
 
index b2ef9b0b2a8b90939a5c112d7f33a887ac7955ff..4efd19fbbff09ac66d155eeabda38b6b78ca60af 100644 (file)
@@ -52,7 +52,7 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opt
 # and is no longer attempted.  Instead, the test does not make assumptions
 # about whether the debug info is present or not.
 
-clean_restart $binfile
+clean_restart $::testfile
 gdb_load_shlib $library1
 gdb_load_shlib $library2
 
index b49c21b29657b1ff6bc0af74aa69137f361e5a1b..9a0127ace6234f59dc192aa6c7ced95b711909a9 100644 (file)
@@ -69,7 +69,7 @@ with_timeout_factor 10 {
 gdb_test "kill" "" "kill process, prepare to debug log file" \
     "Kill the program being debugged\\? \\(y or n\\) " "y"
 
-clean_restart ${binfile}
+clean_restart ${::testfile}
 
 gdb_test "record restore $precsave" \
     "Restored records from core file .*" \
index f2348dd71a9801ecfb32d9cd447db1f60e2ea588..1652a76b9bfb3b3037f7210276b96f54c7db5304 100644 (file)
@@ -5307,7 +5307,8 @@ gdb_caching_proc allow_aarch64_mops_tests {} {
     }
 
     # Compilation succeeded so now run it via gdb.
-    clean_restart $obj
+    clean_restart
+    gdb_load $obj
     gdb_run_cmd
     gdb_expect {
        -re ".*$inferior_exited_re with code 01.*${gdb_prompt} $" {