aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.nat
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2020-06-19 17:33:13 -0300
committerLuis Machado <luis.machado@linaro.org>2021-03-24 14:53:56 -0300
commit4601818e8c06bb8a5bf4b63fa527c69d3f81c6f0 (patch)
treea8650e0d1beb52fdf709a0198be63a61d29f4b49 /gdb/configure.nat
parent3f3bd8b8c14d844533b70b25c7f1a8cbdbac2639 (diff)
downloadgdb-4601818e8c06bb8a5bf4b63fa527c69d3f81c6f0.zip
gdb-4601818e8c06bb8a5bf4b63fa527c69d3f81c6f0.tar.gz
gdb-4601818e8c06bb8a5bf4b63fa527c69d3f81c6f0.tar.bz2
AArch64: Implement memory tagging target methods for AArch64
The patch implements the memory tagging target hooks for AArch64, so we can handle MTE. gdb/ChangeLog: 2021-03-24 Luis Machado <luis.machado@linaro.org> * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o. (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and nat/aarch64-mte-linux-ptrace.h. * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h. (aarch64_linux_nat_target) <supports_memory_tagging>: New method override. <fetch_memtags>: New method override. <store_memtags>: New method override. (aarch64_linux_nat_target::supports_memory_tagging): New method. (aarch64_linux_nat_target::fetch_memtags): New method. (aarch64_linux_nat_target::store_memtags): New method. * arch/aarch64-mte-linux.c: New file. * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h. (AARCH64_MTE_GRANULE_SIZE): Define. (aarch64_memtag_type): New enum. (aarch64_mte_get_tag_granules): New prototype. * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o. * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o. * nat/aarch64-mte-linux-ptrace.c: New file. * nat/aarch64-mte-linux-ptrace.h: New file.
Diffstat (limited to 'gdb/configure.nat')
-rw-r--r--gdb/configure.nat3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/configure.nat b/gdb/configure.nat
index 2869759..e34cccf 100644
--- a/gdb/configure.nat
+++ b/gdb/configure.nat
@@ -236,7 +236,8 @@ case ${gdb_host} in
NATDEPFILES="${NATDEPFILES} aarch64-linux-nat.o \
aarch32-linux-nat.o nat/aarch64-linux-hw-point.o \
nat/aarch64-linux.o \
- nat/aarch64-sve-linux-ptrace.o"
+ nat/aarch64-sve-linux-ptrace.o \
+ nat/aarch64-mte-linux-ptrace.o"
;;
arc)
# Host: ARC based machine running GNU/Linux