28llvm::Expected<StructuredData::GenericSP>
34 thread_plan_sp, args_sp);
46 return error.ToError();
49 return obj->GetBooleanValue();
61 return error.ToError();
64 return obj->GetBooleanValue();
75 return error.ToError();
78 return obj->GetBooleanValue();
99 return error.ToError();
101 return llvm::Error::success();
105 const std::vector<llvm::StringRef> ci_usages = {
106 "thread step-scripted -C <script-name> [-k key -v value ...]"};
107 const std::vector<llvm::StringRef> api_usages = {
108 "SBThread.StepUsingScriptedThreadPlan"};
111 llvm::StringRef(
"Alter thread stepping logic and stop reason"),
static llvm::raw_ostream & error(Stream &strm)
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
static bool CheckStructuredDataObject(llvm::StringRef caller, T obj, Status &error)
static bool CreateInstance(lldb::ScriptLanguage language, ScriptedInterfaceUsages usages)
ScriptedPythonInterface(ScriptInterpreterPythonImpl &interpreter)
T Dispatch(llvm::StringRef method_name, Status &error, Args &&...args)
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(const ScriptedMetadata &scripted_metadata, StructuredData::Generic *script_obj, Args... args)
llvm::Error GetStopDescription(lldb::StreamSP &stream) override
llvm::Expected< bool > ShouldStop(Event *event) override
static llvm::StringRef GetPluginNameStatic()
llvm::Expected< bool > IsStale() override
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(const ScriptedMetadata &scripted_metadata, lldb::ThreadPlanSP thread_plan_sp) override
lldb::StateType GetRunState() override
ScriptedThreadPlanPythonInterface(ScriptInterpreterPythonImpl &interpreter)
llvm::Expected< bool > ExplainsStop(Event *event) override
std::shared_ptr< Object > ObjectSP
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
StateType
Process and Thread States.
@ eStateStepping
Process or thread is in the process of stepping and can not be examined.
std::shared_ptr< lldb_private::Stream > StreamSP