================ @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits