aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/lib/rocm.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/rocm.exp b/gdb/testsuite/lib/rocm.exp
index 1440ac8..a78b9f6 100644
--- a/gdb/testsuite/lib/rocm.exp
+++ b/gdb/testsuite/lib/rocm.exp
@@ -22,6 +22,13 @@ proc allow_hipcc_tests { } {
if {[target_info gdb_protocol] != ""} {
return 0
}
+
+ # Ensure that GDB is built with amd-dbgapi support.
+ set output [remote_exec host $::GDB "$::INTERNAL_GDBFLAGS --configuration"]
+ if { [string first "--with-amd-dbgapi" $output] == -1 } {
+ return 0
+ }
+
return 1
}