From c31ccb44bf173f3a80c12a41310f7b81c6c125c3 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Thu, 1 Jul 2021 01:43:21 +0000 Subject: 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 --- debuggerd/libdebuggerd/utility.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debuggerd/libdebuggerd/utility.cpp') 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... -- cgit v1.2.3