[AArch64] Fix off-by-one when calculating tag granules.
authorLuis Machado <luis.machado@linaro.org>
Thu, 29 Apr 2021 18:10:06 +0000 (15:10 -0300)
committerLuis Machado <luis.machado@linaro.org>
Thu, 13 May 2021 13:15:26 +0000 (10:15 -0300)
commit0746f49b1dd44ce17b21468b9f8d9715e116a991
tree0ff507addfcc548e2ad244b712f2ed621efa1797
parent7671eff8f08de314d8c9837225eba95ed5ea053b
[AArch64] Fix off-by-one when calculating tag granules.

When we want to fetch tags from a memory range, the last address in that
range is not included.

There is a off-by-one error in aarch64_mte_get_tag_granules, which this
patch fixes.

gdb/ChangeLog:

2021-05-13  Luis Machado  <luis.machado@linaro.org>

* arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
include the last address in the range.
gdb/ChangeLog
gdb/arch/aarch64-mte-linux.c