LLDB  mainline
Public Member Functions | Protected Member Functions | List of all members
lldb_private::ThreadPlanPython Class Reference

#include <ThreadPlanPython.h>

Inheritance diagram for lldb_private::ThreadPlanPython:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::ThreadPlanPython:
Collaboration graph
[legend]

Public Member Functions

 ThreadPlanPython (Thread &thread, const char *class_name)
 
 ~ThreadPlanPython () override
 
void GetDescription (Stream *s, lldb::DescriptionLevel level) override
 Print a description of this thread to the stream s. More...
 
bool ValidatePlan (Stream *error) override
 Returns whether this plan could be successfully created. More...
 
bool ShouldStop (Event *event_ptr) override
 
bool MischiefManaged () override
 
bool WillStop () override
 
bool StopOthers () override
 
void DidPush () override
 
bool IsPlanStale () override
 
- Public Member Functions inherited from lldb_private::ThreadPlan
 ThreadPlan (ThreadPlanKind kind, const char *name, Thread &thread, Vote stop_vote, Vote run_vote)
 
virtual ~ThreadPlan ()
 
const char * GetName () const
 Returns the name of this thread plan. More...
 
ThreadGetThread ()
 Returns the Thread that is using this thread plan. More...
 
const ThreadGetThread () const
 
TargetGetTarget ()
 
const TargetGetTarget () const
 
bool TracerExplainsStop ()
 
lldb::StateType RunState ()
 
bool PlanExplainsStop (Event *event_ptr)
 
virtual bool ShouldAutoContinue (Event *event_ptr)
 
virtual Vote ShouldReportStop (Event *event_ptr)
 
virtual Vote ShouldReportRun (Event *event_ptr)
 
virtual void SetStopOthers (bool new_value)
 
bool WillResume (lldb::StateType resume_state, bool current_plan)
 
bool IsMasterPlan ()
 
bool SetIsMasterPlan (bool value)
 
virtual bool OkayToDiscard ()
 
void SetOkayToDiscard (bool value)
 
virtual void ThreadDestroyed ()
 
bool GetPrivate ()
 
void SetPrivate (bool input)
 
virtual void WillPop ()
 
void PushPlan (lldb::ThreadPlanSP &thread_plan_sp)
 
ThreadPlanKind GetKind () const
 
bool IsPlanComplete ()
 
void SetPlanComplete (bool success=true)
 
bool PlanSucceeded ()
 
virtual bool IsBasePlan ()
 
lldb::ThreadPlanTracerSP & GetThreadPlanTracer ()
 
void SetThreadPlanTracer (lldb::ThreadPlanTracerSP new_tracer_sp)
 
void DoTraceLog ()
 
virtual lldb::StopInfoSP GetRealStopInfo ()
 
virtual lldb::ValueObjectSP GetReturnValueObject ()
 
virtual lldb::ExpressionVariableSP GetExpressionVariable ()
 
virtual bool RestoreThreadState ()
 
virtual bool IsVirtualStep ()
 
virtual bool SetIterationCount (size_t count)
 
virtual size_t GetIterationCount ()
 
- Public Member Functions inherited from lldb_private::UserID
 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID. More...
 
 ~UserID ()
 Destructor. More...
 
void Clear ()
 Clears the object state. More...
 
lldb::user_id_t GetID () const
 Get accessor for the user ID. More...
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID. More...
 

Protected Member Functions

bool DoPlanExplainsStop (Event *event_ptr) override
 
lldb::StateType GetPlanRunState () override
 
- Protected Member Functions inherited from lldb_private::ThreadPlan
virtual bool DoWillResume (lldb::StateType resume_state, bool current_plan)
 
ThreadPlanGetPreviousPlan ()
 
lldb::StopInfoSP GetPrivateStopInfo ()
 
void SetStopInfo (lldb::StopInfoSP stop_reason_sp)
 
void CachePlanExplainsStop (bool does_explain)
 
LazyBool GetCachedPlanExplainsStop () const
 
bool IsUsuallyUnexplainedStopReason (lldb::StopReason)
 

Additional Inherited Members

- Public Types inherited from lldb_private::ThreadPlan
enum  ThreadScope { eAllThreads, eSomeThreads, eThisThread }
 
enum  ThreadPlanKind {
  eKindGeneric, eKindNull, eKindBase, eKindCallFunction,
  eKindPython, eKindStepInstruction, eKindStepOut, eKindStepOverBreakpoint,
  eKindStepOverRange, eKindStepInRange, eKindRunToAddress, eKindStepThrough,
  eKindStepUntil, eKindTestCondition
}
 
- Protected Attributes inherited from lldb_private::ThreadPlan
Status m_status
 
Threadm_thread
 
Vote m_stop_vote
 
Vote m_run_vote
 
bool m_takes_iteration_count
 
bool m_could_not_resolve_hw_bp
 
int32_t m_iteration_count = 1
 
- Protected Attributes inherited from lldb_private::UserID
lldb::user_id_t m_uid
 The user ID that uniquely identifies an object. More...
 

Detailed Description

Definition at line 30 of file ThreadPlanPython.h.

Constructor & Destructor Documentation

◆ ThreadPlanPython()

ThreadPlanPython::ThreadPlanPython ( Thread thread,
const char *  class_name 
)

◆ ~ThreadPlanPython()

ThreadPlanPython::~ThreadPlanPython ( )
override

Definition at line 37 of file ThreadPlanPython.cpp.

Member Function Documentation

◆ DidPush()

void ThreadPlanPython::DidPush ( )
overridevirtual

◆ DoPlanExplainsStop()

bool ThreadPlanPython::DoPlanExplainsStop ( Event event_ptr)
overrideprotectedvirtual

◆ GetDescription()

void ThreadPlanPython::GetDescription ( Stream s,
lldb::DescriptionLevel  level 
)
overridevirtual

Print a description of this thread to the stream s.

thread.

Parameters
[in]sThe stream to which to print the description.
[in]levelThe 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 184 of file ThreadPlanPython.cpp.

References lldb_private::Stream::Printf().

◆ GetPlanRunState()

lldb::StateType ThreadPlanPython::GetPlanRunState ( )
overrideprotectedvirtual

◆ IsPlanStale()

bool ThreadPlanPython::IsPlanStale ( )
overridevirtual

◆ MischiefManaged()

bool ThreadPlanPython::MischiefManaged ( )
overridevirtual

◆ ShouldStop()

bool ThreadPlanPython::ShouldStop ( Event event_ptr)
overridevirtual

◆ StopOthers()

bool ThreadPlanPython::StopOthers ( )
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 178 of file ThreadPlanPython.cpp.

◆ ValidatePlan()

bool ThreadPlanPython::ValidatePlan ( Stream error)
overridevirtual

Returns whether this plan could be successfully created.

Parameters
[in]errorA stream to which to print some reason why the plan could not be created. Can be NULL.
Returns
true if the plan should be queued, false otherwise.

Implements lldb_private::ThreadPlan.

Definition at line 42 of file ThreadPlanPython.cpp.

References lldb_private::Stream::Printf().

◆ WillStop()

bool ThreadPlanPython::WillStop ( )
overridevirtual

The documentation for this class was generated from the following files: