This is an archive of the discontinued LLVM Phabricator instance.

Report a useful error when a the user mistypes a class name in making a script ThreadPlan
ClosedPublic

Authored by jingham on Sep 27 2019, 5:26 PM.

Details

Summary

Before this patch if you used SBThread.StepUsingScriptedThreadPlan but mistyped the Python ThreadPlan class name, you wouldn't get any error, and a bogus ThreadPlan would get executed. This patch adds an error string and plumbs it through to where we look up the Python class, so now you get a decent error string. We also tell ourselves the plan has failed (by returning an empty StructuredObject) so that the plan will fail the IsValid check and so not get pushed.

Diff Detail

Repository
rL LLVM

Event Timeline

jingham created this revision.Sep 27 2019, 5:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2019, 5:26 PM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 27 2019, 5:53 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2019, 5:53 PM