From fcef77b426e74d726bf87bba6574b097ba5b97aa Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Wed, 13 Oct 2021 11:17:36 -0700 Subject: Add debug printing for MTE signal codes. Kernel headers on the host may not be up to date, so we are hardcoding the actual values. These are kernel ABI constants, they are not going to change. Bug: 201492782 Test: none needed Change-Id: I0348679427fbe595cdad63b7a08d8f97e8c096c3 --- runtime/fault_handler.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/fault_handler.cc') diff --git a/runtime/fault_handler.cc b/runtime/fault_handler.cc index 51ac2c3013..bc6acec713 100644 --- a/runtime/fault_handler.cc +++ b/runtime/fault_handler.cc @@ -192,6 +192,8 @@ static const char* SignalCodeName(int sig, int code) { switch (code) { case SEGV_MAPERR: return "SEGV_MAPERR"; case SEGV_ACCERR: return "SEGV_ACCERR"; + case 8: return "SEGV_MTEAERR"; + case 9: return "SEGV_MTESERR"; default: return "UNKNOWN"; } } -- cgit v1.2.3-59-g8ed1b