From: Simon Marchi Date: Wed, 6 May 2026 20:27:55 +0000 (-0400) Subject: gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp with native... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91f2c27f40b784e73a3893eb69a4a24ae2c9b74a;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp with native-gdbserver 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 --- diff --git a/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp index f9120a9cad0..c0603886383 100644 --- a/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp +++ b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp @@ -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 }