]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix clean_restart <absolute filename> in gdb.ada
authorTom de Vries <tdevries@suse.de>
Thu, 4 Sep 2025 07:23:13 +0000 (09:23 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 4 Sep 2025 07:23:13 +0000 (09:23 +0200)
Fix clean_restart <absolute filename> in the test-cases in gdb.ada.

Tested on x86_64-linux with gcc 14.

18 files changed:
gdb/testsuite/gdb.ada/exec_changed.exp
gdb/testsuite/gdb.ada/file-then-restart.exp
gdb/testsuite/gdb.ada/mi_catch_assert.exp
gdb/testsuite/gdb.ada/mi_catch_ex.exp
gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp
gdb/testsuite/gdb.ada/mi_dyn_arr.exp
gdb/testsuite/gdb.ada/mi_ex_cond.exp
gdb/testsuite/gdb.ada/mi_exc_info.exp
gdb/testsuite/gdb.ada/mi_interface.exp
gdb/testsuite/gdb.ada/mi_prot.exp
gdb/testsuite/gdb.ada/mi_ref_changeable.exp
gdb/testsuite/gdb.ada/mi_string_access.exp
gdb/testsuite/gdb.ada/mi_task_arg.exp
gdb/testsuite/gdb.ada/mi_task_info.exp
gdb/testsuite/gdb.ada/mi_var_access.exp
gdb/testsuite/gdb.ada/mi_var_array.exp
gdb/testsuite/gdb.ada/mi_var_union.exp
gdb/testsuite/gdb.ada/mi_variant.exp

index c52757edee673e5b2795d4c64a250b2f0fe94189..31add111e96c943d5d5cb2cbc55e980936772082 100644 (file)
@@ -84,7 +84,7 @@ if { [gdb_start_cmd] < 0 } {
 
 # Try again, this time with just changing the file time of first.
 
-clean_restart "${binfile}$EXEEXT"
+clean_restart "${::testfile}$EXEEXT"
 
 # Ensure we don't accidentally use the main symbol cache.
 gdb_test_no_output "mt set symbol-cache-size 0"
index faa9962dfac9a84580cf5d7d17b07a4862475a95..6e8e058f70378aef3618de14c23d7c0ed3342295 100644 (file)
@@ -36,7 +36,7 @@ if {[gdb_compile_ada "${srcfile2}" "${binfile2}" executable {debug}] != ""} {
 }
 
 foreach_with_prefix scenario {kill no-kill} {
-    clean_restart $binfile
+    clean_restart $::testfile
 
     # Start the program, we should land in the program main procedure
     if {[gdb_start_cmd] < 0} {
index 1b4609a64389a901c521e4002cb36de4471974e7..c3dbfca14b91a3b5ec837c2cfd82caf9bc3fd095 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 ###################################################
 # 2. Try catching conditionnal failed assertion.  #
index da3d3408fe26398f324039a503a7ddb70748cebd..083702826735b892c24ecb4ad8e986a103ad35b0 100644 (file)
@@ -30,7 +30,7 @@ set any_nb "\[0-9\]+"
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 ####################################
 # 1. Try catching all exceptions.  #
index 00e8f6e999eacb6cbb181021f81195aba51837e5..0c50f59408303757a1b710e60fd427a1fe207a7c 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 #############################################
 # 1. Try catching all exceptions handlers.  #
index c0e9f7fb827eac30ffe082d1854973af703a32e2..b01f3e9357a1a0395e9fb87e1b04916d09b5d3d7 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
    return 0
index 53ace22979756f4e239fcc384bf454a225b038f0..43caf768ee335a65fefbad08c61b2b3acbb2e855 100644 (file)
@@ -30,7 +30,7 @@ set any_nb "\[0-9\]+"
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-if {[mi_clean_restart $binfile]} {
+if {[mi_clean_restart $::testfile]} {
     return
 }
 
index b9d00721b4d851baf9eb779b9d34b8f1e10ca10d..a95fb23a3f1f61cf12bac219ac60014f0daeb009 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
    return 0
index 630353d14d131ec7797aa47a6cf308570a25092c..f25adf0276df14dd0e60c91ffa944779066246d5 100644 (file)
@@ -28,7 +28,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
    return 0
index 7f68ca87c744f374d13da81de79afe9a4a4e98d7..4edc93bad7767ac3a898eb303f4a89f96c625538 100644 (file)
@@ -28,7 +28,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
    return 0
index 315e2b302915dee7185fc3353bbafdfb20d4fe54..c69f61598b11853144869c562f55050839b7d1a8 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
    return 0
index 25c0490c027444b2565d6e2791ee5dd60c325e85..e29e17dd4f4cef866c177cc7ed6f5deadb4121ef 100644 (file)
@@ -29,7 +29,7 @@ foreach_gnat_encoding scenario flags {all minimal} {
        return -1
     }
 
-    mi_clean_restart $binfile-$scenario
+    mi_clean_restart $::testfile-$scenario
 
     if {[mi_runto_main] < 0} {
        return 0
index 018e3bc2552e1ead1228a2950509fd8591c08add..6c222ff8512373d8fc1ab32b4e5d69657d9ce650 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-if {[mi_clean_restart $binfile]} {
+if {[mi_clean_restart $::testfile]} {
     return
 }
 
index aa05a028d1804c91758cefbfeaf87db3c9ab9efd..9895cfeb1e61ce054a997ee7d9105ff21a3df012 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-if {[mi_clean_restart $binfile]} {
+if {[mi_clean_restart $::testfile]} {
     return
 }
 
index 9bfaeffcf21764d565887d71d434001ec24db503..b595780e7054b67d49c76a8fcc245e61bc80b062 100644 (file)
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != "" } {
     return -1
 }
 
-mi_clean_restart $binfile
+mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
     return 0
index a04673cac46b6a80dab0294e3b502f9dc242a5d6..0ba90e789fc1f5bd08b6c12fb45ac2902aa1c1e1 100644 (file)
@@ -29,7 +29,7 @@ foreach_gnat_encoding scenario flags {none all minimal} {
        return -1
     }
 
-    mi_clean_restart $binfile-$scenario
+    mi_clean_restart $::testfile-$scenario
 
     if {[mi_runto_main] < 0} {
        return 0
index 99882cf9558a6de120b43e6f3849d24fa62f00ea..b1988006164aba1904cbdb620bb69935ad761e0d 100644 (file)
@@ -31,7 +31,7 @@ foreach_gnat_encoding scenario flags {none all minimal} {
        return -1
     }
 
-    mi_clean_restart $binfile-$scenario
+    mi_clean_restart $::testfile-$scenario
 
     if {[mi_runto_main] < 0} {
        return 0
index 4c71f16113f26a2b3beb581bc63e830dbe2a37ed..18693cebefb8a5d56b7d3ec2a09ce33a2babd6b1 100644 (file)
@@ -30,7 +30,7 @@ foreach_gnat_encoding scenario flags {none all minimal} {
        return -1
     }
 
-    mi_clean_restart $binfile-$scenario
+    mi_clean_restart $::testfile-$scenario
 
     if {[mi_runto_main] < 0} {
        return 0