From 5d56e285374ce16d0f1f9279c2211f66b2f8cea4 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Thu, 4 Feb 2016 14:07:23 -0800 Subject: Newer kernels added SEGV_BNDERR. Bug: 23789423 Change-Id: I6fdce75715edfce179df8c0e6a7205f26341ebd0 --- debuggerd/tombstone.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debuggerd') diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp index dda6677a9..7cf2ffc71 100644 --- a/debuggerd/tombstone.cpp +++ b/debuggerd/tombstone.cpp @@ -134,8 +134,15 @@ static const char* get_sigcode(int signo, int code) { switch (code) { case SEGV_MAPERR: return "SEGV_MAPERR"; case SEGV_ACCERR: return "SEGV_ACCERR"; +#if defined(SEGV_BNDERR) + case SEGV_BNDERR: return "SEGV_BNDERR"; +#endif } +#if defined(SEGV_BNDERR) + static_assert(NSIGSEGV == SEGV_BNDERR, "missing SEGV_* si_code"); +#else static_assert(NSIGSEGV == SEGV_ACCERR, "missing SEGV_* si_code"); +#endif break; case SIGTRAP: switch (code) { -- cgit v1.2.3