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

Since these test-cases are unsupported for me, do the simple substitution:
...
clean_restart $binfile
->
clean_restart
gdb_load $binfile
...

gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp
gdb/testsuite/gdb.rocm/displaced-stepping.exp
gdb/testsuite/gdb.rocm/fork-exec-gpu-to-non-gpu.exp
gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu.exp
gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp
gdb/testsuite/gdb.rocm/precise-memory-exec.exp
gdb/testsuite/gdb.rocm/precise-memory-warning-sigsegv.exp
gdb/testsuite/gdb.rocm/precise-memory.exp
gdb/testsuite/gdb.rocm/simple.exp

index 3fe6a952c1d586272223847ce4b1a5460daf2e06..e994884c8c9d3ee0cb5f20386f66cef39beb64da 100644 (file)
@@ -53,7 +53,8 @@ if { [gdb_compile $srcdir/$subdir/$srcfile \
 
 proc do_test { } {
     with_rocm_gpu_lock {
-       clean_restart $::binfile
+       clean_restart
+       gdb_load $::binfile
        gdb_test_no_output "set args $::hipmodule_path" "set args"
 
        if { ![runto_main] } {
index cd50fecf5b591923cb1e22c3e55585ab9d19b142..9e8abd4c475b450f17f1c6056fcc8360ce4eddb2 100644 (file)
@@ -28,7 +28,8 @@ if {[build_executable "failed to prepare" $testfile $srcfile {hip}]} {
 }
 
 proc do_test {} {
-    clean_restart $::binfile
+    clean_restart
+    gdb_load $::binfile
 
     with_rocm_gpu_lock {
        if ![runto_main] {
index 22d4b75caa0474d4af1460281c4b6178a387846b..dfd109231f57cba23c65df34e26190c96d6f252a 100644 (file)
@@ -54,7 +54,8 @@ proc do_test { detach-on-fork follow-fork-mode fork_func } {
     }
 
     with_rocm_gpu_lock {
-       clean_restart ${::binfile}-execer-${fork_func}
+       clean_restart
+       gdb_load ${::binfile}-execer-${fork_func}
 
        gdb_test_no_output "set detach-on-fork ${detach-on-fork}"
        gdb_test_no_output "set follow-fork-mode ${follow-fork-mode}"
index 13860993bdea32811fd810d319e854c9ca3836f1..b14e2c775026a20d164a18aae11dc2ed9c93deb6 100644 (file)
@@ -53,7 +53,8 @@ proc do_test { detach-on-fork follow-fork-mode fork_func } {
     }
 
     with_rocm_gpu_lock {
-       clean_restart ${::binfile}-execer-${fork_func}
+       clean_restart
+       gdb_load ${::binfile}-execer-${fork_func}
 
        gdb_test_no_output "set detach-on-fork ${detach-on-fork}"
        gdb_test_no_output "set follow-fork-mode ${follow-fork-mode}"
index 4f554320a521aeceacf4ae3ddd53370967c7a444..0ed11e82a32ed36d84356f4438f5e1c0321f487b 100644 (file)
@@ -28,7 +28,8 @@ if {[build_executable "failed to prepare" $testfile $srcfile {debug hip}]} {
 }
 
 proc do_test {} {
-    clean_restart $::binfile
+    clean_restart
+    gdb_load $::binfile
     gdb_test_no_output "set non-stop on"
     gdb_test_no_output "set detach-on-fork off"
     gdb_test_no_output "set follow-fork parent"
index 506488ca506086097c31855e27ec35835a6da432..76be07816f855a3e59b6b502937a08b9e6a6b66e 100644 (file)
@@ -29,7 +29,8 @@ if {[build_executable "failed to prepare $testfile" $testfile $srcfile {debug}]}
 }
 
 proc do_test { follow-exec-mode } {
-    clean_restart $::binfile
+    clean_restart
+    gdb_load $::binfile
 
     with_rocm_gpu_lock {
        if ![runto_main] {
index f8557195a0730f9418a36ece272a03dde99feac9..da0a95a37f504873837d026f80d340e3922ef747 100644 (file)
@@ -29,7 +29,8 @@ if {[build_executable "failed to prepare" $testfile $srcfile {debug hip}]} {
 }
 
 proc do_test { } {
-    clean_restart $::binfile
+    clean_restart
+    gdb_load $::binfile
 
     with_rocm_gpu_lock {
        if ![runto_main] {
index 6711d8069a704e86fb2d304fe3e4254a5e12436e..8f005596739f1c2a131e6eb35ae28f21328d38a1 100644 (file)
@@ -28,7 +28,8 @@ if {[build_executable "failed to prepare" $testfile $srcfile {debug hip}]} {
 }
 
 proc do_test { } {
-    clean_restart $::binfile
+    clean_restart
+    gdb_load $::binfile
 
     with_rocm_gpu_lock {
        if ![runto_main] {
index bc90a0afb03bd9a898034d689ed09c31ac596360..8f6ff3e4337e486ce31a371eb07931f16111d81d 100644 (file)
@@ -27,7 +27,8 @@ if {[build_executable "failed to prepare" $testfile $srcfile {debug hip}]} {
 }
 
 proc do_test {} {
-    clean_restart $::binfile
+    clean_restart
+    gdb_load $::binfile
 
     with_rocm_gpu_lock {
        if ![runto_main] {