]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp with native...
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 6 May 2026 20:27:55 +0000 (16:27 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 19 Jun 2026 20:07:46 +0000 (16:07 -0400)
ROCm tests don't work under the native-gdbserver board, but switch it to
use the new -inferior-args option anyway, to give the good example.

Change-Id: I684cd5e4328e033072735d5feca8037ca77b57c1
Reviewed-By: Tankut Baris Aktemur <TankutBaris.Aktemur@amd.com>
gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp

index f9120a9cad03adce63c7a02da29f974e0b122fb6..c06038863837338a3de56c8d8893981a524b931e 100644 (file)
@@ -55,9 +55,8 @@ proc do_test { } {
     with_rocm_gpu_lock {
        clean_restart
        gdb_load $::binfile
-       gdb_test_no_output "set args $::hipmodule_path" "set args"
 
-       if { ![runto_main] } {
+       if { ![runto_main -inferior-args $::hipmodule_path] } {
                return
        }