[binutils-gdb] gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp with native-gdbserver
Simon Marchi
simark@sourceware.org
Fri Jun 19 20:09:33 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=91f2c27f40b784e73a3893eb69a4a24ae2c9b74a
commit 91f2c27f40b784e73a3893eb69a4a24ae2c9b74a
Author: Simon Marchi <simon.marchi@polymtl.ca>
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 <TankutBaris.Aktemur@amd.com>
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
}
More information about the Gdb-cvs
mailing list