aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorLancelot SIX <lancelot.six@amd.com>2023-02-06 19:08:13 +0000
committerLancelot SIX <lancelot.six@amd.com>2023-02-13 09:42:13 +0000
commit310943c20cdfbc9d5e3abe71a46c39ed0819b719 (patch)
tree16b538e1fa33ccf7ec02d1719618a3bfa0a98078 /gdb
parent09ad7eb8cc670356aff71e59b22038590c397a21 (diff)
downloadgdb-310943c20cdfbc9d5e3abe71a46c39ed0819b719.zip
gdb-310943c20cdfbc9d5e3abe71a46c39ed0819b719.tar.gz
gdb-310943c20cdfbc9d5e3abe71a46c39ed0819b719.tar.bz2
gdb/testsuite: require amd-dbgapi support to run rocm tests
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>
Diffstat (limited to 'gdb')
-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
}