aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-linux-tdep.c
diff options
context:
space:
mode:
authorGustavo Romero <gustavo.romero@linaro.org>2024-04-18 20:10:33 +0000
committerLuis Machado <luis.machado@arm.com>2024-04-19 15:29:39 +0100
commitf00fb5e1d1fc058700eac66eb483da2638493b98 (patch)
tree8549a5115a2f93ac9edc28783ccf87cdcd39f4cf /gdb/aarch64-linux-tdep.c
parent75606e5e8de136a1ad217e53ce5943a91d5ea424 (diff)
downloadbinutils-f00fb5e1d1fc058700eac66eb483da2638493b98.zip
binutils-f00fb5e1d1fc058700eac66eb483da2638493b98.tar.gz
binutils-f00fb5e1d1fc058700eac66eb483da2638493b98.tar.bz2
gdb: aarch64: Move MTE address check out of set_memtag
Remove check in parse_set_allocation_tag_input as it is redundant: currently the check happens at the end of parse_set_allocation_tag_input and also in set_memtag (called after parse_set_allocation_tag_input). After it, move MTE address check out of set_memtag and add this check to the upper layer, before set_memtag is called. This is a preparation for using a target hook instead of a gdbarch hook on MTE address checks. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> Approved-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'gdb/aarch64-linux-tdep.c')
-rw-r--r--gdb/aarch64-linux-tdep.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index 50055ac..8e6e63d 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -2525,10 +2525,6 @@ aarch64_linux_set_memtags (struct gdbarch *gdbarch, struct value *address,
/* Remove the top byte. */
addr = gdbarch_remove_non_address_bits (gdbarch, addr);
- /* Make sure we are dealing with a tagged address to begin with. */
- if (!aarch64_linux_tagged_address_p (gdbarch, address))
- return false;
-
/* With G being the number of tag granules and N the number of tags
passed in, we can have the following cases: