binutils-gdb/gdb/arch
Luis Machado 5e984dbf35 AArch64: Add MTE register set support for GDB and gdbserver
AArch64 MTE support in the Linux kernel exposes a new register
through ptrace.  This patch adds the required code to support it.

include/ChangeLog:

2021-03-24  Luis Machado  <luis.machado@linaro.org>

	* elf/common.h (NT_ARM_TAGGED_ADDR_CTRL): Define.

gdb/ChangeLog:

2021-03-24  Luis Machado  <luis.machado@linaro.org>

	* aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
	(store_mteregs_to_thread): New function.
	(aarch64_linux_nat_target::fetch_registers): Update to call
	fetch_mteregs_from_thread.
	(aarch64_linux_nat_target::store_registers): Update to call
	store_mteregs_to_thread.
	* aarch64-tdep.c (aarch64_mte_register_names): New struct.
	(aarch64_cannot_store_register): Handle MTE registers.
	(aarch64_gdbarch_init): Initialize and setup MTE registers.
	* aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
	<has_mte>: New method.
	* arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.

gdbserver/ChangeLog:

2021-03-24  Luis Machado  <luis.machado@linaro.org>

	* linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
	(aarch64_store_mteregset): New function.
	(aarch64_regsets): Add MTE register set entry.
	(aarch64_sve_regsets): Add MTE register set entry.
2021-03-24 14:52:57 -03:00
..
aarch32.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
aarch32.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
aarch64-insn.c gdb: convert aarch64 to new-style debug macros 2021-01-11 16:52:42 -05:00
aarch64-insn.h GDB: aarch64: Add ability to displaced step over a BR/BLR instruction 2021-01-27 17:12:25 +00:00
aarch64-mte-linux.h AArch64: Add MTE register set support for GDB and gdbserver 2021-03-24 14:52:57 -03:00
aarch64.c AArch64: Add target description/feature for MTE registers 2021-03-24 14:52:08 -03:00
aarch64.h AArch64: Add target description/feature for MTE registers 2021-03-24 14:52:08 -03:00
amd64.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
amd64.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arc.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arc.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arm-get-next-pcs.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arm-get-next-pcs.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arm-linux.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arm-linux.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arm.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arm.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
i386.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
i386.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
ppc-linux-common.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
ppc-linux-common.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
ppc-linux-tdesc.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
riscv.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
riscv.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
xtensa.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00