summaryrefslogtreecommitdiff
path: root/debuggerd/libdebuggerd/utility.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2021-11-10 16:29:23 -0800
committerPeter Collingbourne <pcc@google.com>2021-11-11 15:05:47 -0800
commita8c3e48d2c2384fe5ced424ff7a468d976042819 (patch)
tree5c51ada8ce820dfca2694e7dab2f5b1868bb4fde /debuggerd/libdebuggerd/utility.cpp
parent39e0f549a390da35e84c7ab130b0f06562aabf61 (diff)
Improvements to tombstone output.
- Use "likelihood" instead of "probability" since that has connotations of being less precise, and our probability ordering isn't very precise anyway. - Hide the fault address with SEGV_MTEAERR because it is not available. - Pad the fault address with leading zeroes to make it clearer which bits of the top byte (and any following bytes such as PAC signature bits) are set. Bug: 206015287 Change-Id: I5e1e99b7f3e967c44781d8550bbd7158eb421b64
Diffstat (limited to 'debuggerd/libdebuggerd/utility.cpp')
-rw-r--r--debuggerd/libdebuggerd/utility.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/debuggerd/libdebuggerd/utility.cpp b/debuggerd/libdebuggerd/utility.cpp
index a7506b7608..4370130cc9 100644
--- a/debuggerd/libdebuggerd/utility.cpp
+++ b/debuggerd/libdebuggerd/utility.cpp
@@ -275,9 +275,10 @@ bool signal_has_si_addr(const siginfo_t* si) {
case SIGBUS:
case SIGFPE:
case SIGILL:
- case SIGSEGV:
case SIGTRAP:
return true;
+ case SIGSEGV:
+ return si->si_code != SEGV_MTEAERR;
default:
return false;
}