LLDB mainline
|
#include <ThreadPlanPython.h>
Public Member Functions | |
ThreadPlanPython (Thread &thread, const char *class_name, const StructuredDataImpl &args_data) | |
void | GetDescription (Stream *s, lldb::DescriptionLevel level) override |
Print a description of this thread to the stream s. | |
bool | ValidatePlan (Stream *error) override |
Returns whether this plan could be successfully created. | |
bool | ShouldStop (Event *event_ptr) override |
bool | MischiefManaged () override |
bool | WillStop () override |
bool | StopOthers () override |
void | SetStopOthers (bool new_value) override |
void | DidPush () override |
bool | IsPlanStale () override |
bool | DoWillResume (lldb::StateType resume_state, bool current_plan) override |
![]() | |
virtual | ~ThreadPlan () |
const char * | GetName () const |
Returns the name of this thread plan. | |
Thread & | GetThread () |
Returns the Thread that is using this thread plan. | |
Target & | GetTarget () |
const Target & | GetTarget () const |
void | ClearThreadCache () |
Clear the Thread* cache. | |
virtual void | GetDescription (Stream *s, lldb::DescriptionLevel level)=0 |
Print a description of this thread to the stream s. | |
virtual bool | ValidatePlan (Stream *error)=0 |
Returns whether this plan could be successfully created. | |
bool | TracerExplainsStop () |
lldb::StateType | RunState () |
bool | PlanExplainsStop (Event *event_ptr) |
virtual bool | ShouldStop (Event *event_ptr)=0 |
virtual bool | ShouldAutoContinue (Event *event_ptr) |
Returns whether this thread plan overrides the ShouldStop of subsequently processed plans. | |
virtual Vote | ShouldReportStop (Event *event_ptr) |
Vote | ShouldReportRun (Event *event_ptr) |
virtual void | SetStopOthers (bool new_value) |
virtual bool | StopOthers () |
virtual bool | ShouldRunBeforePublicStop () |
bool | WillResume (lldb::StateType resume_state, bool current_plan) |
virtual bool | WillStop ()=0 |
bool | IsControllingPlan () |
bool | SetIsControllingPlan (bool value) |
virtual bool | OkayToDiscard () |
void | SetOkayToDiscard (bool value) |
virtual bool | MischiefManaged () |
virtual void | ThreadDestroyed () |
bool | GetPrivate () |
void | SetPrivate (bool input) |
virtual void | DidPush () |
virtual void | DidPop () |
ThreadPlanKind | GetKind () const |
bool | IsPlanComplete () |
void | SetPlanComplete (bool success=true) |
virtual bool | IsPlanStale () |
bool | PlanSucceeded () |
virtual bool | IsBasePlan () |
lldb::ThreadPlanTracerSP & | GetThreadPlanTracer () |
void | SetThreadPlanTracer (lldb::ThreadPlanTracerSP new_tracer_sp) |
void | DoTraceLog () |
virtual lldb::ValueObjectSP | GetReturnValueObject () |
virtual lldb::ExpressionVariableSP | GetExpressionVariable () |
virtual void | RestoreThreadState () |
virtual bool | IsVirtualStep () |
bool | SetIterationCount (size_t count) |
![]() | |
UserID (lldb::user_id_t uid=LLDB_INVALID_UID) | |
Construct with optional user ID. | |
~UserID ()=default | |
Destructor. | |
void | Clear () |
Clears the object state. | |
lldb::user_id_t | GetID () const |
Get accessor for the user ID. | |
void | SetID (lldb::user_id_t uid) |
Set accessor for the user ID. | |
Protected Member Functions | |
bool | DoPlanExplainsStop (Event *event_ptr) override |
lldb::StateType | GetPlanRunState () override |
ScriptInterpreter * | GetScriptInterpreter () |
![]() | |
ThreadPlan (ThreadPlanKind kind, const char *name, Thread &thread, Vote report_stop_vote, Vote report_run_vote) | |
virtual bool | DoWillResume (lldb::StateType resume_state, bool current_plan) |
virtual bool | DoPlanExplainsStop (Event *event_ptr)=0 |
void | PushPlan (lldb::ThreadPlanSP &thread_plan_sp) |
ThreadPlan * | GetPreviousPlan () |
lldb::StopInfoSP | GetPrivateStopInfo () |
void | SetStopInfo (lldb::StopInfoSP stop_reason_sp) |
virtual lldb::StateType | GetPlanRunState ()=0 |
bool | IsUsuallyUnexplainedStopReason (lldb::StopReason) |
Private Member Functions | |
ThreadPlanPython (const ThreadPlanPython &)=delete | |
const ThreadPlanPython & | operator= (const ThreadPlanPython &)=delete |
Private Attributes | |
std::string | m_class_name |
StructuredDataImpl | m_args_data |
std::string | m_error_str |
StructuredData::ObjectSP | m_implementation_sp |
StreamString | m_stop_description |
bool | m_did_push |
bool | m_stop_others |
lldb::ScriptedThreadPlanInterfaceSP | m_interface |
Additional Inherited Members | |
![]() | |
enum | ThreadPlanKind { eKindGeneric , eKindNull , eKindBase , eKindCallFunction , eKindPython , eKindStepInstruction , eKindStepOut , eKindStepOverBreakpoint , eKindStepOverRange , eKindStepInRange , eKindRunToAddress , eKindStepThrough , eKindStepUntil } |
![]() | |
Status | m_status |
Process & | m_process |
lldb::tid_t | m_tid |
Vote | m_report_stop_vote |
Vote | m_report_run_vote |
bool | m_takes_iteration_count |
bool | m_could_not_resolve_hw_bp |
int32_t | m_iteration_count = 1 |
![]() | |
lldb::user_id_t | m_uid |
The user ID that uniquely identifies an object. | |
Definition at line 33 of file ThreadPlanPython.h.
ThreadPlanPython::ThreadPlanPython | ( | Thread & | thread, |
const char * | class_name, | ||
const StructuredDataImpl & | args_data | ||
) |
Definition at line 30 of file ThreadPlanPython.cpp.
References lldb_private::ScriptInterpreter::CreateScriptedThreadPlanInterface(), GetScriptInterpreter(), m_interface, lldb_private::ThreadPlan::SetIsControllingPlan(), lldb_private::ThreadPlan::SetOkayToDiscard(), lldb_private::ThreadPlan::SetPlanComplete(), and lldb_private::ThreadPlan::SetPrivate().
|
privatedelete |
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 80 of file ThreadPlanPython.cpp.
References m_args_data, m_class_name, m_did_push, m_error_str, m_implementation_sp, m_interface, and lldb_private::ThreadPlan::SetPlanComplete().
|
overrideprotectedvirtual |
Implements lldb_private::ThreadPlan.
Definition at line 131 of file ThreadPlanPython.cpp.
References lldb_private::GetLog(), LLDB_LOG_ERROR, LLDB_LOGF, m_class_name, m_implementation_sp, m_interface, lldb_private::ThreadPlan::SetPlanComplete(), and lldb_private::Thread.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 214 of file ThreadPlanPython.cpp.
References lldb_private::StreamString::Clear(), and m_stop_description.
|
overridevirtual |
Print a description of this thread to the stream s.
thread. Don't expect that the result of GetThread is valid in the description method. This might get called when the underlying Thread has not been reported, so we only know the TID and not the thread.
[in] | s | The stream to which to print the description. |
[in] | level | The level of description desired. Note that eDescriptionLevelBrief will be used in the stop message printed when the plan is complete. |
Implements lldb_private::ThreadPlan.
Definition at line 178 of file ThreadPlanPython.cpp.
References lldb_private::StreamString::Empty(), lldb_private::StreamString::GetData(), lldb_private::GetLog(), GetScriptInterpreter(), LLDB_LOG_ERROR, LLDB_LOGF, m_class_name, m_implementation_sp, m_interface, m_stop_description, lldb_private::Stream::Printf(), lldb_private::Stream::PutCString(), and lldb_private::Thread.
Referenced by MischiefManaged().
|
overrideprotectedvirtual |
Implements lldb_private::ThreadPlan.
Definition at line 168 of file ThreadPlanPython.cpp.
References lldb::eStateRunning, lldb_private::GetLog(), LLDB_LOGF, m_class_name, m_implementation_sp, m_interface, and lldb_private::Thread.
|
protected |
Definition at line 76 of file ThreadPlanPython.cpp.
References lldb_private::Target::GetDebugger(), lldb_private::Debugger::GetScriptInterpreter(), lldb_private::Process::GetTarget(), and lldb_private::ThreadPlan::m_process.
Referenced by GetDescription(), and ThreadPlanPython().
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 113 of file ThreadPlanPython.cpp.
References lldb_private::GetLog(), LLDB_LOG_ERROR, LLDB_LOGF, m_class_name, m_implementation_sp, m_interface, lldb_private::ThreadPlan::SetPlanComplete(), and lldb_private::Thread.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 150 of file ThreadPlanPython.cpp.
References lldb::eDescriptionLevelBrief, GetDescription(), lldb_private::GetLog(), lldb_private::ThreadPlan::IsPlanComplete(), LLDB_LOGF, m_class_name, m_implementation_sp, m_stop_description, and lldb_private::Thread.
|
privatedelete |
|
inlineoverridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 50 of file ThreadPlanPython.h.
References m_stop_others.
|
overridevirtual |
Implements lldb_private::ThreadPlan.
Definition at line 95 of file ThreadPlanPython.cpp.
References lldb_private::GetLog(), LLDB_LOG_ERROR, LLDB_LOGF, m_class_name, m_implementation_sp, m_interface, lldb_private::ThreadPlan::SetPlanComplete(), and lldb_private::Thread.
|
inlineoverridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 48 of file ThreadPlanPython.h.
References m_stop_others.
|
overridevirtual |
Returns whether this plan could be successfully created.
[in] | error | A stream to which to print some reason why the plan could not be created. Can be NULL. |
Implements lldb_private::ThreadPlan.
Definition at line 61 of file ThreadPlanPython.cpp.
References error(), m_did_push, m_error_str, and m_implementation_sp.
|
overridevirtual |
Implements lldb_private::ThreadPlan.
Definition at line 207 of file ThreadPlanPython.cpp.
References lldb_private::GetLog(), LLDB_LOGF, m_class_name, and lldb_private::Thread.
|
private |
Definition at line 68 of file ThreadPlanPython.h.
Referenced by DidPush().
|
private |
Definition at line 67 of file ThreadPlanPython.h.
Referenced by DidPush(), DoPlanExplainsStop(), GetDescription(), GetPlanRunState(), IsPlanStale(), MischiefManaged(), ShouldStop(), and WillStop().
|
private |
Definition at line 72 of file ThreadPlanPython.h.
Referenced by DidPush(), and ValidatePlan().
|
private |
Definition at line 69 of file ThreadPlanPython.h.
Referenced by DidPush(), and ValidatePlan().
|
private |
Definition at line 70 of file ThreadPlanPython.h.
Referenced by DidPush(), DoPlanExplainsStop(), GetDescription(), GetPlanRunState(), IsPlanStale(), MischiefManaged(), ShouldStop(), and ValidatePlan().
|
private |
Definition at line 74 of file ThreadPlanPython.h.
Referenced by DidPush(), DoPlanExplainsStop(), GetDescription(), GetPlanRunState(), IsPlanStale(), ShouldStop(), and ThreadPlanPython().
|
private |
Definition at line 71 of file ThreadPlanPython.h.
Referenced by DoWillResume(), GetDescription(), and MischiefManaged().
|
private |
Definition at line 73 of file ThreadPlanPython.h.
Referenced by SetStopOthers(), and StopOthers().