]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Sanitize the address before working with allocation tags
authorLuis Machado <luis.machado@linaro.org>
Fri, 14 May 2021 14:34:06 +0000 (11:34 -0300)
committerLuis Machado <luis.machado@linaro.org>
Mon, 28 Jun 2021 18:20:55 +0000 (15:20 -0300)
commita52d0b9de195d91bdf6730e114ee09fe4d1e67ad
tree1dee5b28e29df8a2eeef71e409f57d905ff08f9f
parente660f4e9054d03549c565a762ba3a8b6e0092d99
Sanitize the address before working with allocation tags

Remove the logical tag/top byte from the address whenever we have to work with
allocation tags.

gdb/ChangeLog:

2021-06-28  Luis Machado  <luis.machado@linaro.org>

* aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
byte.
(aarch64_linux_set_memtags): Likewise.
(aarch64_linux_get_memtag): Likewise.
(aarch64_linux_report_signal_info): Likewise.
gdb/ChangeLog
gdb/aarch64-linux-tdep.c