]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Improve Morello feature detection
authorLuis Machado <luis.machado@arm.com>
Thu, 28 Jul 2022 01:09:04 +0000 (02:09 +0100)
committerLuis Machado <luis.machado@arm.com>
Wed, 3 Aug 2022 09:28:03 +0000 (10:28 +0100)
commite8424a874d37006e239664b6fbff3c6980e68ab7
treeaad6ae0c4352e97bc5988554a339c3dbd6148706
parent2b6368f341599ef6c55c16d2eb24ecd0ffd126cf
Improve Morello feature detection

Given HWCAP2_MORELLO changed for Linux Kernel 5.18, this breaks Morello GDB's
heuristic for detecting the Morello feature.

When possible, switch to detecting the Morello feature through the availability
of the NT_ARM_MORELLO register set (which means PTRACE_PEEKCAP and
PTRACE_POKECAP are also available).  For corefiles, switch to using the presence
of the Morello register set section.

For extended-remote mode, check for the two possible values of HWCAP2_MORELLO.
gdb/aarch64-linux-nat.c
gdb/aarch64-linux-tdep.c
gdb/arch/aarch64-cap-linux.h
gdb/nat/aarch64-cap-linux.c
gdb/nat/aarch64-cap-linux.h
gdb/nat/linux-ptrace.c
gdb/nat/linux-ptrace.h
gdbserver/linux-aarch64-low.cc