Merge "Newer kernels added SEGV_BNDERR."

This commit is contained in:
Christopher Ferris 2016-02-05 02:08:27 +00:00 committed by Gerrit Code Review
commit 14c06e0769
1 changed files with 7 additions and 0 deletions

View File

@ -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) {