]> 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)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 23:23:35 +0000 (16:23 -0700)
commit6e169eb375dd691871067c2f54c1245bf5c4683e
tree7940bd208f9dd066790a8587abdf2082a6b4283d
parent022cd04c691472786eb5924e13f3c30210e19485
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