diff options
author | Christopher Ferris <cferris@google.com> | 2021-02-18 11:44:10 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2021-02-18 11:59:11 -0800 |
commit | 95b026f976f0506732c0e95e81dd9dee8e27414a (patch) | |
tree | 04f75240c8e1642aa3e49f8720b9942011291f6e /debuggerd/libdebuggerd/utility.cpp | |
parent | ca474f994d45e60bae8841b7d41c876fc48b8a6e (diff) |
Update for new kernel 5.11 headers.
Add new SYS_USER_DISPATCH to SIGSYS case.
Test: Builds, unit tests pass.
Change-Id: Id470053c167d7ffe51d622356c867815cd773fbc
Diffstat (limited to 'debuggerd/libdebuggerd/utility.cpp')
-rw-r--r-- | debuggerd/libdebuggerd/utility.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debuggerd/libdebuggerd/utility.cpp b/debuggerd/libdebuggerd/utility.cpp index f941990d0..6f13ed4c2 100644 --- a/debuggerd/libdebuggerd/utility.cpp +++ b/debuggerd/libdebuggerd/utility.cpp @@ -391,8 +391,10 @@ const char* get_sigcode(const siginfo_t* si) { case SIGSYS: switch (si->si_code) { case SYS_SECCOMP: return "SYS_SECCOMP"; + case SYS_USER_DISPATCH: + return "SYS_USER_DISPATCH"; } - static_assert(NSIGSYS == SYS_SECCOMP, "missing SYS_* si_code"); + static_assert(NSIGSYS == SYS_USER_DISPATCH, "missing SYS_* si_code"); break; case SIGTRAP: switch (si->si_code) { |