[Lldb-commits] [lldb] [LLDB][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 2 01:41:32 PDT 2024
================
@@ -556,6 +566,22 @@ 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;
+ if (IsSignalWithAddrValue(si_signo)) {
+ addr = data.GetAddress(&offset);
+ addr_lsb = data.GetU16(&offset);
+ }
return error;
}
+
+std::string ELFLinuxSigInfo::GetDescription() {
+ if (IsSignalWithAddrValue(si_signo))
+ return lldb_private::UnixSignals::CreateForHost()->GetSignalDescription(
----------------
labath wrote:
And this shouldn't be using the *Host* UnixSignals object for the same reason. Get the one from the `Process` instance.
https://github.com/llvm/llvm-project/pull/110065
More information about the lldb-commits
mailing list