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

Tested on x86_64-linux.

gdb/testsuite/gdb.testsuite/gdb-caching-proc-consistency.exp
gdb/testsuite/lib/ada.exp
gdb/testsuite/lib/gdb.exp

index 0957dbdd56014bb95426338536cb58a59fed684d..4676a41803f484a5440fbdfd607b39cee9910851 100644 (file)
@@ -95,7 +95,8 @@ proc test_file { file } {
            }
 
            if { $setup_gdb } {
-               clean_restart $obj
+               clean_restart
+               gdb_load $obj
            }
 
            test_proc $procname
index 37bed856408d3a75f8e388e43a2b290a0a3e8a38..50067eb2707c5a0729df97b18c1edbe8b68c23d7 100644 (file)
@@ -220,7 +220,8 @@ proc gnat_runtime_has_debug_info_1 { shared } {
        return 0
     }
 
-    clean_restart $dst
+    clean_restart
+    gdb_load $dst
 
     if { ! [runto "GNAT_Debug_Info_Test"] } {
        return 0
index ab4506a44558201603b26b28e0139602aa28a93c..f2348dd71a9801ecfb32d9cd447db1f60e2ea588 100644 (file)
@@ -4710,7 +4710,8 @@ gdb_caching_proc allow_lam_tests {} {
     # No error message, compilation succeeded so now run it via gdb.
 
     set allow_lam_tests 0
-    clean_restart $obj
+    clean_restart
+    gdb_load $obj
     gdb_run_cmd
     gdb_expect {
        -re ".*$inferior_exited_re with code.*${gdb_prompt} $" {
@@ -5053,7 +5054,8 @@ gdb_caching_proc aarch64_initialize_sve_information { } {
        return [array get supported_vl]
     }
 
-    clean_restart $test_exec
+    clean_restart
+    gdb_load $test_exec
 
     if {![runto_main]} {
        return [array get supported_vl]
@@ -5210,7 +5212,8 @@ gdb_caching_proc aarch64_initialize_sme_information { } {
        return [array get supported_svl]
     }
 
-    clean_restart $test_exec
+    clean_restart
+    gdb_load $test_exec
 
     if {![runto_main]} {
        return [array get supported_svl]
@@ -9595,7 +9598,8 @@ gdb_caching_proc target_endianness {} {
         return 0
     }
 
-    clean_restart $obj
+    clean_restart
+    gdb_load $obj
     if ![runto_main] {
         return 0
     }
@@ -9840,7 +9844,8 @@ gdb_caching_proc target_supports_scheduler_locking {} {
         return 0
     }
 
-    clean_restart $obj
+    clean_restart
+    gdb_load $obj
     if ![runto_main] {
         return 0
     }
@@ -11335,7 +11340,8 @@ gdb_caching_proc have_epilogue_line_info {} {
         return False
     }
 
-    clean_restart $obj
+    clean_restart
+    gdb_load $obj
 
     gdb_test_multiple "info line 6" "epilogue test" {
        -re -wrap ".*starts at address.*and ends at.*" {