[Lldb-commits] [lldb] [lldb] Implement qXfer:siginfo:read on NetBSD (PR #233875)
David CARLIER via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 21 00:51:29 PDT 2026
================
@@ -326,3 +326,22 @@ NativeThreadNetBSD::CopyWatchpointsFrom(NativeThreadNetBSD &source) {
}
return s;
}
+
+llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
+NativeThreadNetBSD::GetSiginfo() const {
+ ptrace_siginfo_t info;
+ Status error = NativeProcessNetBSD::PtraceWrapper(
+ PT_GET_SIGINFO, m_process.GetID(), &info, sizeof(info));
+ if (error.Fail())
+ return error.ToError();
+
+ // The siginfo describes the signal which stopped the process. The signal
+ // belongs to this thread if it was sent to it, or to the whole process.
+ if (info.psi_lwpid != 0 &&
----------------
devnexen wrote:
Within the week end I ll try to give it a try in a virtual env it will take forever to compile :) we will see.
https://github.com/llvm/llvm-project/pull/233875
More information about the lldb-commits
mailing list