]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix clean_restart <absolute filename> in gdb.opt
authorTom de Vries <tdevries@suse.de>
Wed, 3 Sep 2025 11:03:02 +0000 (13:03 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 3 Sep 2025 11:03:02 +0000 (13:03 +0200)
Fix clean_restart <absolute filename> in the test-cases in gdb.opt.

Tested on x86_64-linux using gcc 14.

gdb/testsuite/gdb.opt/inline-break.exp
gdb/testsuite/gdb.opt/inline-entry.exp
gdb/testsuite/gdb.opt/solib-intra-step.exp

index d83ff751ff21c43dbbbcf407f0b96ee5e1d570ee..7ecb3fadfbaf93965017d68ae1751c955c9c2b9c 100644 (file)
@@ -247,7 +247,7 @@ foreach_with_prefix func {
     "func_inline_caller"
     "func_inline_callee"
 } {
-    clean_restart $binfile
+    clean_restart $::testfile
 
     if {![runto_main]} {
        continue
@@ -264,7 +264,7 @@ foreach_with_prefix func {
 set line [gdb_get_line_number "break here"]
 
 with_test_prefix "line number" {
-    clean_restart $binfile
+    clean_restart $::testfile
 
     if {![runto_main]} {
        continue
@@ -288,7 +288,7 @@ with_test_prefix "line number" {
 
 with_test_prefix "address" {
 
-    clean_restart $binfile
+    clean_restart $::testfile
 
     if {![runto_main]} {
        continue
@@ -308,7 +308,7 @@ with_test_prefix "address" {
 
 with_test_prefix "check alignment" {
 
-    clean_restart $binfile
+    clean_restart $::testfile
 
     if {![runto_main]} {
        continue
index f185f103f778a001c71503272c6342c63f576e30..21be60c28dfa8accea51217296dbfb71e466d985 100644 (file)
@@ -43,7 +43,7 @@ if { [supports_statement_frontiers] } {
     lappend options additional_flags=-gstatement-frontiers
 }
 
-if { [prepare_for_testing "failed to prepare" $binfile $srcfile $options] } {
+if { [prepare_for_testing "failed to prepare" $testfile $srcfile $options] } {
     return
 }
 
index 4b7ab3a5bc5112db6dfadd85cd757ff98c26e9eb..9c6d6c5683c8def0cd61307fffd89f89e7d5d5a3 100644 (file)
@@ -34,7 +34,7 @@ if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
   return -1
 }
 
-clean_restart ${binfile}
+clean_restart ${::testfile}
 gdb_load_shlib $binfile_lib
 
 if {![runto_main]} {