[Lldb-commits] [PATCH] D118055: [lldb] [gdb-remote] Support getting siginfo via API

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 27 01:43:20 PST 2022


labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lldb/source/API/SBThread.cpp:1326-1334
+  if (!process.IsValid()) {
+    error.SetErrorString("no process");
+    return value;
+  }
+  SBTarget target = process.GetTarget();
+  if (!target.IsValid()) {
+    error.SetErrorString("unable to get target");
----------------
It should be fine to chain these, relying on the fact that the SB methods on an empty object will return another empty object.


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

https://reviews.llvm.org/D118055



More information about the lldb-commits mailing list