Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d56e285 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Newer kernels added SEGV_BNDERR.

Bug: 23789423
Change-Id: I6fdce75715edfce179df8c0e6a7205f26341ebd0
parent aae1eb2c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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) {