diff options
author | Christopher Ferris <cferris@google.com> | 2021-07-01 01:43:21 +0000 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2021-07-01 03:35:24 +0000 |
commit | c31ccb44bf173f3a80c12a41310f7b81c6c125c3 (patch) | |
tree | b939c51b3d61f400ca9d29e7a1875486ca7101b4 /debuggerd | |
parent | 8d7c887b234cfffcf7821add9bbfc081e464ed3a (diff) |
Update for new TRAP_PERF value.
For the new kernel 5.13 heders, there is a new TRAP_PERF value that
needs to be handled.
Test: Builds.
Change-Id: I2c6658ca94423c210db9ad6692ec69f6be69b3f5
Diffstat (limited to 'debuggerd')
-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 2c645b542..a7506b760 100644 --- a/debuggerd/libdebuggerd/utility.cpp +++ b/debuggerd/libdebuggerd/utility.cpp @@ -402,6 +402,8 @@ const char* get_sigcode(const siginfo_t* si) { case TRAP_HWBKPT: return "TRAP_HWBKPT"; case TRAP_UNK: return "TRAP_UNDIAGNOSED"; + case TRAP_PERF: + return "TRAP_PERF"; } if ((si->si_code & 0xff) == SIGTRAP) { switch ((si->si_code >> 8) & 0xff) { @@ -423,7 +425,7 @@ const char* get_sigcode(const siginfo_t* si) { return "PTRACE_EVENT_STOP"; } } - static_assert(NSIGTRAP == TRAP_UNK, "missing TRAP_* si_code"); + static_assert(NSIGTRAP == TRAP_PERF, "missing TRAP_* si_code"); break; } // Then the other codes... |