mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 00:52:16 +08:00
[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.
This commit is contained in:
@ -166,6 +166,8 @@ proc test_mode { mode } {
|
|||||||
|
|
||||||
require is_aarch64_target
|
require is_aarch64_target
|
||||||
|
|
||||||
|
require {have_compile_flag -march=armv8.5-a+memtag}
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
foreach_with_prefix mode {"sync" "async"} {
|
foreach_with_prefix mode {"sync" "async"} {
|
||||||
test_mode $mode
|
test_mode $mode
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
require is_aarch64_target
|
require is_aarch64_target
|
||||||
|
|
||||||
|
require {have_compile_flag -mbranch-protection=pac-ret+leaf}
|
||||||
|
|
||||||
# Build program with address signing forced on.
|
# Build program with address signing forced on.
|
||||||
standard_testfile
|
standard_testfile
|
||||||
set compile_flags {debug}
|
set compile_flags {debug}
|
||||||
|
Reference in New Issue
Block a user