]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
AArch64: Report tag violation error information
authorLuis Machado <luis.machado@linaro.org>
Mon, 15 Jun 2020 18:44:20 +0000 (15:44 -0300)
committerLuis Machado <luis.machado@linaro.org>
Thu, 25 Jun 2020 16:23:38 +0000 (13:23 -0300)
commitcd55085b07e03aba28cc5a5358852efb1beb1a15
treef04fe13cabab01a55da4219792eb7da9f24f2301
parentdddcc4b5eec8b9c89c54131ddcb6c73949de98ea
AArch64: Report tag violation error information

Whenever a memory tag violation occurs, we get a SIGSEGV. Additional
information can be obtained through the siginfo data structure.

For AArch64 the Linux kernel may expose the fault address and tag
information, if we have a synchronous event. Otherwise there is
not fault address available.

gdb/ChangeLog:

YYYY-MM-DD  Luis Machado  <luis.machado@linaro.org>

* aarch64-linux-tdep.c
(aarch64_linux_handle_segmentation_fault): New function.
(aarch64_linux_init_abi): Register
aarch64_linux_handle_segmentation_fault as segmentation fault hook.
* arch/aarch64-linux.h (SEGV_MTEAERR): Define.
(SEGV_MTESERR): Define.
gdb/aarch64-linux-tdep.c
gdb/arch/aarch64-mte-linux.h