diff options
author | 2021-10-13 11:17:36 -0700 | |
---|---|---|
committer | 2021-10-15 13:00:13 +0000 | |
commit | fcef77b426e74d726bf87bba6574b097ba5b97aa (patch) | |
tree | c56b3b2099bb6b6c1047f33701a5952eb051bf55 /runtime/fault_handler.cc | |
parent | 099acf8eee6dfa50a0958fe3dc95e7a3ae6c6664 (diff) |
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
Diffstat (limited to 'runtime/fault_handler.cc')
-rw-r--r-- | runtime/fault_handler.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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"; } } |