[binutils-gdb] gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp with native-gdbserver
Simon Marchi via Gdb-cvs <[email protected]> Fri, 19 Jun 2026 20:09:33 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=91f2c27f40b784e73a3893eb69a4a24ae2c9b74a commit 91f2c27f40b784e73a3893eb69a4a24ae2c9b74a Author: Simon Marchi <[email protected]> Date: Wed May 6 16:27:55 2026 -0400 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 <[email protected]> Diff: --- gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }