[7/7] gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp with native-gdbserver
Commit Message
From: Simon Marchi <simon.marchi@polymtl.ca>
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
---
.../gdb.rocm/code-object-load-while-breakpoint-hit.exp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
@@ -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
}