[Lldb-commits] [lldb] [LLDB][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 30 09:48:18 PDT 2024
================
@@ -556,6 +558,34 @@ Status ELFLinuxSigInfo::Parse(const DataExtractor &data, const ArchSpec &arch) {
si_signo = data.GetU32(&offset);
si_errno = data.GetU32(&offset);
si_code = data.GetU32(&offset);
+ // 64b ELF have a 4 byte pad.
+ if (data.GetAddressByteSize() == 8)
+ offset += 4;
+ switch (si_signo) {
+ case SIGFPE:
+ case SIGILL:
+ case SIGSEGV:
+ case SIGBUS:
+ case SIGTRAP:
+ addr = (void *)data.GetAddress(&offset);
----------------
clayborg wrote:
don't cast to `void *`, just leave as an addr_t as suggested in previous inline comment.
https://github.com/llvm/llvm-project/pull/110065
More information about the lldb-commits
mailing list