[Lldb-commits] [PATCH] D117113: [lldb] [llgs] Implement qXfer:siginfo:read

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 13 02:16:52 PST 2022


labath accepted this revision.
labath added a comment.
This revision is now accepted and ready to land.

cool



================
Comment at: lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:1987
+NativeProcessLinux::GetSiginfo() const {
+  siginfo_t siginfo;
+  Status error = GetSignalInfo(GetCurrentThreadID(), &siginfo);
----------------
mgorny wrote:
> labath wrote:
> > I'd be better to outright allocate a memory buffer of the right size (`getNewUninitMemBuffer`), and directly write the data there.
> I suppose there's no similar solution for  the FreeBSD case where the returned struct is a member of the temporary struct?
Not with the current interface (and it's probably not worth changing it for it).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117113/new/

https://reviews.llvm.org/D117113



More information about the lldb-commits mailing list