[Lldb-commits] [lldb] [LLDB][ELF Core] Support all the Generic (Negative) SI Codes. (PR #140150)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Fri May 23 10:47:06 PDT 2025
================
@@ -480,3 +481,111 @@ CompilerType PlatformLinux::GetSiginfoType(const llvm::Triple &triple) {
ast->CompleteTagDeclarationDefinition(siginfo_type);
return siginfo_type;
}
+
+static std::string GetDescriptionFromSiginfo(lldb::ValueObjectSP siginfo_sp) {
+ if (!siginfo_sp)
+ return "";
+
+ lldb_private::LinuxSignals linux_signals;
+ int code = siginfo_sp->GetChildMemberWithName("si_code")->GetValueAsSigned(0);
+ int signo =
+ siginfo_sp->GetChildMemberWithName("si_signo")->GetValueAsSigned(-1);
+ // si_code = 0 is SI_NOINFO, we just want the description with nothing
----------------
Jlalond wrote:
I'm not sure where I got this information, but it shouldn't matter because the code is not defined. Good eye.
https://github.com/llvm/llvm-project/pull/140150
More information about the lldb-commits
mailing list