This is an archive of the discontinued LLVM Phabricator instance.

[lldb/API] Introduce SBProcess::ForceScriptedState method
ClosedPublic

Authored by mib on Mar 3 2023, 9:37 PM.

Details

Summary

This patch introduces a new method to the SBProcess API called
ForceScriptedState. As the name suggests, this affordance will allow the
user to alter the private state of the scripted process programatically.

This is necessary to update the scripted process state when perform
interactive debugging.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Diff Detail

Event Timeline

mib created this revision.Mar 3 2023, 9:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2023, 9:37 PM
mib requested review of this revision.Mar 3 2023, 9:37 PM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 6 2023, 1:14 PM
This revision was automatically updated to reflect the committed changes.
mib reopened this revision.Mar 6 2023, 3:33 PM

I landed this by mistake ...

The code seems fine, but I don't think "private state" is a concept that people who aren't intimately familiar with lldb are likely to understand. I think you could just leave out private and just say it changes the process state to the new state. That's all people using it really need to know.

mib updated this revision to Diff 504871.Mar 13 2023, 3:35 PM

Remove private state occurrences as @jingham suggested.

This revision is now accepted and ready to land.Mar 13 2023, 5:37 PM
This revision was automatically updated to reflect the committed changes.