[binutils-gdb] [gdb/testsuite] Require compilation flags in two gdb.arch/aarch64 test-cases
Tom de Vries
vries@sourceware.org
Tue Feb 21 14:26:14 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f8ab28d773dbf37d6e8ab4318ff0042dd742e9b8
commit f8ab28d773dbf37d6e8ab4318ff0042dd742e9b8
Author: Tom de Vries <tdevries@suse.de>
Date: Tue Feb 21 15:26:24 2023 +0100
[gdb/testsuite] Require compilation flags in two gdb.arch/aarch64 test-cases
With test-cases gdb.arch/aarch64-mte-core.exp and gdb.arch/aarch64-pauth.exp I
run into compilation errors due to unsupported compilation flags.
Fix this by requiring the compilation flags, such that I have instead:
...
UNSUPPORTED: gdb.arch/aarch64-mte-core.exp: require failed: \
have_compile_flag -march=armv8.5-a+memtag
UNSUPPORTED: gdb.arch/aarch64-pauth.exp: require failed: \
have_compile_flag -mbranch-protection=pac-ret+leaf
...
Tested on aarch64-linux.
Diff:
---
gdb/testsuite/gdb.arch/aarch64-mte-core.exp | 2 ++
gdb/testsuite/gdb.arch/aarch64-pauth.exp | 2 ++
2 files changed, 4 insertions(+)
diff --git a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
index dde5df47b1a..6127ffb302b 100644
--- a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
@@ -166,6 +166,8 @@ proc test_mode { mode } {
require is_aarch64_target
+require {have_compile_flag -march=armv8.5-a+memtag}
+
# Run tests
foreach_with_prefix mode {"sync" "async"} {
test_mode $mode
diff --git a/gdb/testsuite/gdb.arch/aarch64-pauth.exp b/gdb/testsuite/gdb.arch/aarch64-pauth.exp
index d0dfaf96900..36d8e722072 100644
--- a/gdb/testsuite/gdb.arch/aarch64-pauth.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-pauth.exp
@@ -19,6 +19,8 @@
require is_aarch64_target
+require {have_compile_flag -mbranch-protection=pac-ret+leaf}
+
# Build program with address signing forced on.
standard_testfile
set compile_flags {debug}
More information about the Gdb-cvs
mailing list