This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Minor refinements to ThreadPlan::RestoreThreadState (NFC)
ClosedPublic

Authored by kastiglione on Feb 14 2021, 11:22 PM.

Details

Summary

Correct RestoreThreadState to a void return type. Also, update the signature of its
callee, Thread::RestoreThreadStateFromCheckpoint, by updating it to a void return
type, and making it non-virtual.

Diff Detail

Event Timeline

kastiglione requested review of this revision.Feb 14 2021, 11:22 PM
kastiglione created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2021, 11:22 PM
jingham accepted this revision.Feb 15 2021, 2:15 PM

It is possible that the stub could fail to restore the checkpointed state, though apparently it either never has or never has mattered because no one if setting or checking the bool return. If this does end up failing we should plumb a Status through, since bool is too low information to be useful. This is fine for now.

This revision is now accepted and ready to land.Feb 15 2021, 2:15 PM
This revision was landed with ongoing or failed builds.Feb 15 2021, 5:59 PM
This revision was automatically updated to reflect the committed changes.