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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits