summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-02-05 02:08:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-02-05 02:08:27 +0000
commit14c06e0769817d81f18fcdc41132747ffc158745 (patch)
tree0ab773f14b1b0b96e7892911c1b13279105705b9 /debuggerd
parentcfd44ee74f2318565d188ee0b2dd08911519d55e (diff)
parent5d56e285374ce16d0f1f9279c2211f66b2f8cea4 (diff)
downloadsystem_core-14c06e0769817d81f18fcdc41132747ffc158745.tar.gz
system_core-14c06e0769817d81f18fcdc41132747ffc158745.tar.bz2
system_core-14c06e0769817d81f18fcdc41132747ffc158745.zip
Merge "Newer kernels added SEGV_BNDERR."
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/tombstone.cpp7
1 files changed, 7 insertions, 0 deletions
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) {