LLDB mainline
lldb_private::ThreadPlanRunToBreakpoint Class Reference

#include <ThreadPlanRunToBreakpoint.h>

Inheritance diagram for lldb_private::ThreadPlanRunToBreakpoint:
[legend]

Public Member Functions

 ThreadPlanRunToBreakpoint (Thread &thread, lldb::BreakpointSP breakpoint_sp, bool stop_others)
 ThreadPlanRunToBreakpoint (Thread &thread, const std::vector< lldb::BreakpointSP > &breakpoints, bool stop_others)
 ~ThreadPlanRunToBreakpoint () override
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 StopOthers () override
void SetStopOthers (bool new_value) override
lldb::StateType GetPlanRunState () override
bool WillStop () override
bool MischiefManaged () override
Public Member Functions inherited from lldb_private::ThreadPlan
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.
bool TracerExplainsStop ()
lldb::StateType RunState ()
bool PlanExplainsStop (Event *event_ptr)
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 bool SupportsResumeOthers ()
virtual bool ShouldRunBeforePublicStop ()
bool WillResume (lldb::StateType resume_state, bool current_plan)
bool IsControllingPlan ()
virtual bool IsLeafPlan ()
bool SetIsControllingPlan (bool value)
virtual bool OkayToDiscard ()
void SetOkayToDiscard (bool value)
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)
virtual lldb::RunDirection GetDirection () const
Public Member Functions inherited from lldb_private::UserID
 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
bool AtOurBreakpoint ()
Protected Member Functions inherited from lldb_private::ThreadPlan
 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)
void PushPlan (lldb::ThreadPlanSP &thread_plan_sp)
ThreadPlan * GetPreviousPlan ()
lldb::StopInfoSP GetPrivateStopInfo ()
void SetStopInfo (lldb::StopInfoSP stop_reason_sp)
bool IsUsuallyUnexplainedStopReason (lldb::StopReason)

Private Member Functions

 ThreadPlanRunToBreakpoint (const ThreadPlanRunToBreakpoint &)=delete
const ThreadPlanRunToBreakpoint & operator= (const ThreadPlanRunToBreakpoint &)=delete

Private Attributes

bool m_stop_others
std::vector< lldb::BreakpointSP > m_breakpoints

Additional Inherited Members

Public Types inherited from lldb_private::ThreadPlan
enum  ThreadPlanKind {
  eKindGeneric , eKindNull , eKindBase , eKindCallFunction ,
  eKindPython , eKindStepInstruction , eKindStepOut , eKindStepOverBreakpoint ,
  eKindStepOverRange , eKindStepInRange , eKindRunToAddress , eKindStepThrough ,
  eKindStepUntil , eKindSingleThreadTimeout , eKindRunToBreakpoint
}
Protected Attributes inherited from lldb_private::ThreadPlan
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
Protected Attributes inherited from lldb_private::UserID
lldb::user_id_t m_uid
 The user ID that uniquely identifies an object.

Detailed Description

Definition at line 27 of file ThreadPlanRunToBreakpoint.h.

Constructor & Destructor Documentation

◆ ThreadPlanRunToBreakpoint() [1/3]

lldb_private::ThreadPlanRunToBreakpoint::ThreadPlanRunToBreakpoint ( Thread & thread,
lldb::BreakpointSP breakpoint_sp,
bool stop_others )

◆ ThreadPlanRunToBreakpoint() [2/3]

lldb_private::ThreadPlanRunToBreakpoint::ThreadPlanRunToBreakpoint ( Thread & thread,
const std::vector< lldb::BreakpointSP > & breakpoints,
bool stop_others )

References error().

◆ ~ThreadPlanRunToBreakpoint()

ThreadPlanRunToBreakpoint::~ThreadPlanRunToBreakpoint ( )
override

◆ ThreadPlanRunToBreakpoint() [3/3]

lldb_private::ThreadPlanRunToBreakpoint::ThreadPlanRunToBreakpoint ( const ThreadPlanRunToBreakpoint & )
privatedelete

Member Function Documentation

◆ AtOurBreakpoint()

◆ DoPlanExplainsStop()

bool ThreadPlanRunToBreakpoint::DoPlanExplainsStop ( Event * event_ptr)
overrideprotectedvirtual

Implements lldb_private::ThreadPlan.

Definition at line 94 of file ThreadPlanRunToBreakpoint.cpp.

References AtOurBreakpoint().

◆ GetDescription()

void ThreadPlanRunToBreakpoint::GetDescription ( Stream * s,
lldb::DescriptionLevel level )
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.

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 52 of file ThreadPlanRunToBreakpoint.cpp.

References lldb::eDescriptionLevelBrief, lldb_private::Stream::Indent(), m_breakpoints, and lldb_private::Stream::PutCString().

◆ GetPlanRunState()

StateType ThreadPlanRunToBreakpoint::GetPlanRunState ( )
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 108 of file ThreadPlanRunToBreakpoint.cpp.

References lldb::eStateRunning.

◆ MischiefManaged()

◆ operator=()

const ThreadPlanRunToBreakpoint & lldb_private::ThreadPlanRunToBreakpoint::operator= ( const ThreadPlanRunToBreakpoint & )
privatedelete

◆ SetStopOthers()

void ThreadPlanRunToBreakpoint::SetStopOthers ( bool new_value)
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 104 of file ThreadPlanRunToBreakpoint.cpp.

References m_stop_others.

◆ ShouldStop()

bool ThreadPlanRunToBreakpoint::ShouldStop ( Event * event_ptr)
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 98 of file ThreadPlanRunToBreakpoint.cpp.

References AtOurBreakpoint().

◆ StopOthers()

bool ThreadPlanRunToBreakpoint::StopOthers ( )
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 102 of file ThreadPlanRunToBreakpoint.cpp.

References m_stop_others.

◆ ValidatePlan()

bool ThreadPlanRunToBreakpoint::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 87 of file ThreadPlanRunToBreakpoint.cpp.

References error(), and m_breakpoints.

◆ WillStop()

bool ThreadPlanRunToBreakpoint::WillStop ( )
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 110 of file ThreadPlanRunToBreakpoint.cpp.

Member Data Documentation

◆ m_breakpoints

std::vector<lldb::BreakpointSP> lldb_private::ThreadPlanRunToBreakpoint::m_breakpoints
private

◆ m_stop_others

bool lldb_private::ThreadPlanRunToBreakpoint::m_stop_others
private

Definition at line 60 of file ThreadPlanRunToBreakpoint.h.

Referenced by SetStopOthers(), and StopOthers().


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