]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/lib/trace-support.exp
Clean up gdb.trace test results on targets not supporting this feature.
[thirdparty/binutils-gdb.git] / gdb / testsuite / lib / trace-support.exp
index 547da372b20b42eaa50a80e3186aec655bf9f202..e5603d4f6f019fa99cb967c16095eeb998d1ba1b 100644 (file)
@@ -50,6 +50,25 @@ if [is_amd64_regs_target] {
     set pcreg "pc"
 }
 
+#
+# Procedure: gdb_trace_common_supports_arch
+# Returns true if gdb.trace/trace-common.h knows about this target.
+# Allows skipping tests that depend on being able to include this file.
+# Please keep this in sync with the supported targets in the header.
+#
+
+proc gdb_trace_common_supports_arch { } {
+  if { [istarget "x86_64*-*-*"]
+       || [istarget "i386*-*-*"]
+       || [istarget "aarch64*-*-*"]
+       || [istarget "powerpc*-*-*"]
+       || [istarget "s390*-*-*"] } {
+       return 1
+    } else {
+       return 0
+    }
+}
+
 #
 # Procedure: gdb_target_supports_trace
 # Returns true if GDB is connected to a target that supports tracing.