Update allow_hipcc_tests to check that GDB has the amd-dbgapi support
built-in. Without this support, all tests using hipcc and the rocm
stack will fail.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
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
}