LLDB mainline
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::ThreadPlanStepOverBreakpoint Class Reference

#include <ThreadPlanStepOverBreakpoint.h>

Inheritance diagram for lldb_private::ThreadPlanStepOverBreakpoint:
Inheritance graph
[legend]

Public Member Functions

 ThreadPlanStepOverBreakpoint (Thread &thread)
 
 ~ThreadPlanStepOverBreakpoint () 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
 
lldb::StateType GetPlanRunState () override
 
bool WillStop () override
 
void DidPop () override
 
bool MischiefManaged () override
 
void ThreadDestroyed () override
 
void SetAutoContinue (bool do_it)
 
bool ShouldAutoContinue (Event *event_ptr) override
 Returns whether this thread plan overrides the ShouldStop of subsequently processed plans.
 
bool IsPlanStale () override
 
lldb::addr_t GetBreakpointLoadAddress () const
 
- Public Member Functions inherited from lldb_private::ThreadPlan
virtual ~ThreadPlan ()
 
const char * GetName () const
 Returns the name of this thread plan.
 
ThreadGetThread ()
 Returns the Thread that is using this thread plan.
 
TargetGetTarget ()
 
const TargetGetTarget () 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::ThreadPlanTracerSPGetThreadPlanTracer ()
 
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)
 
- 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 DoWillResume (lldb::StateType resume_state, bool current_plan) override
 
void ReenableBreakpointSite ()
 
- 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)
 
virtual bool DoPlanExplainsStop (Event *event_ptr)=0
 
void PushPlan (lldb::ThreadPlanSP &thread_plan_sp)
 
ThreadPlanGetPreviousPlan ()
 
lldb::StopInfoSP GetPrivateStopInfo ()
 
void SetStopInfo (lldb::StopInfoSP stop_reason_sp)
 
virtual lldb::StateType GetPlanRunState ()=0
 
bool IsUsuallyUnexplainedStopReason (lldb::StopReason)
 

Private Member Functions

 ThreadPlanStepOverBreakpoint (const ThreadPlanStepOverBreakpoint &)=delete
 
const ThreadPlanStepOverBreakpointoperator= (const ThreadPlanStepOverBreakpoint &)=delete
 

Private Attributes

lldb::addr_t m_breakpoint_addr
 
lldb::user_id_t m_breakpoint_site_id
 
bool m_auto_continue
 
bool m_reenabled_breakpoint_site
 

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
}
 
- Protected Attributes inherited from lldb_private::ThreadPlan
Status m_status
 
Processm_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 17 of file ThreadPlanStepOverBreakpoint.h.

Constructor & Destructor Documentation

◆ ThreadPlanStepOverBreakpoint() [1/2]

ThreadPlanStepOverBreakpoint::ThreadPlanStepOverBreakpoint ( Thread thread)

◆ ~ThreadPlanStepOverBreakpoint()

ThreadPlanStepOverBreakpoint::~ThreadPlanStepOverBreakpoint ( )
overridedefault

◆ ThreadPlanStepOverBreakpoint() [2/2]

lldb_private::ThreadPlanStepOverBreakpoint::ThreadPlanStepOverBreakpoint ( const ThreadPlanStepOverBreakpoint )
privatedelete

Member Function Documentation

◆ DidPop()

void ThreadPlanStepOverBreakpoint::DidPop ( )
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 128 of file ThreadPlanStepOverBreakpoint.cpp.

References ReenableBreakpointSite().

◆ DoPlanExplainsStop()

bool ThreadPlanStepOverBreakpoint::DoPlanExplainsStop ( Event event_ptr)
overrideprotectedvirtual

◆ DoWillResume()

bool ThreadPlanStepOverBreakpoint::DoWillResume ( lldb::StateType  resume_state,
bool  current_plan 
)
overrideprotectedvirtual

◆ GetBreakpointLoadAddress()

lldb::addr_t lldb_private::ThreadPlanStepOverBreakpoint::GetBreakpointLoadAddress ( ) const
inline

Definition at line 36 of file ThreadPlanStepOverBreakpoint.h.

References m_breakpoint_addr.

Referenced by lldb_private::Thread::SetupForResume().

◆ GetDescription()

void ThreadPlanStepOverBreakpoint::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 42 of file ThreadPlanStepOverBreakpoint.cpp.

References m_breakpoint_addr, m_breakpoint_site_id, and lldb_private::Stream::Printf().

◆ GetPlanRunState()

StateType ThreadPlanStepOverBreakpoint::GetPlanRunState ( )
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 106 of file ThreadPlanStepOverBreakpoint.cpp.

References lldb::eStateStepping.

◆ IsPlanStale()

bool ThreadPlanStepOverBreakpoint::IsPlanStale ( )
overridevirtual

◆ MischiefManaged()

bool ThreadPlanStepOverBreakpoint::MischiefManaged ( )
overridevirtual

◆ operator=()

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

◆ ReenableBreakpointSite()

void ThreadPlanStepOverBreakpoint::ReenableBreakpointSite ( )
protected

◆ SetAutoContinue()

void ThreadPlanStepOverBreakpoint::SetAutoContinue ( bool  do_it)

◆ ShouldAutoContinue()

bool ThreadPlanStepOverBreakpoint::ShouldAutoContinue ( Event event_ptr)
overridevirtual

Returns whether this thread plan overrides the ShouldStop of subsequently processed plans.

When processing the thread plan stack, this function gives plans the ability to continue - even when subsequent plans return true from ShouldStop.

See also
Thread::ShouldStop

Reimplemented from lldb_private::ThreadPlan.

Definition at line 166 of file ThreadPlanStepOverBreakpoint.cpp.

References m_auto_continue.

Referenced by ShouldStop().

◆ ShouldStop()

bool ThreadPlanStepOverBreakpoint::ShouldStop ( Event event_ptr)
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 100 of file ThreadPlanStepOverBreakpoint.cpp.

References ShouldAutoContinue().

◆ StopOthers()

bool ThreadPlanStepOverBreakpoint::StopOthers ( )
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 104 of file ThreadPlanStepOverBreakpoint.cpp.

◆ ThreadDestroyed()

void ThreadPlanStepOverBreakpoint::ThreadDestroyed ( )
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 158 of file ThreadPlanStepOverBreakpoint.cpp.

References ReenableBreakpointSite().

◆ ValidatePlan()

bool ThreadPlanStepOverBreakpoint::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 48 of file ThreadPlanStepOverBreakpoint.cpp.

◆ WillStop()

bool ThreadPlanStepOverBreakpoint::WillStop ( )
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 123 of file ThreadPlanStepOverBreakpoint.cpp.

References ReenableBreakpointSite().

Member Data Documentation

◆ m_auto_continue

bool lldb_private::ThreadPlanStepOverBreakpoint::m_auto_continue
private

Definition at line 47 of file ThreadPlanStepOverBreakpoint.h.

Referenced by SetAutoContinue(), and ShouldAutoContinue().

◆ m_breakpoint_addr

lldb::addr_t lldb_private::ThreadPlanStepOverBreakpoint::m_breakpoint_addr
private

◆ m_breakpoint_site_id

lldb::user_id_t lldb_private::ThreadPlanStepOverBreakpoint::m_breakpoint_site_id
private

Definition at line 46 of file ThreadPlanStepOverBreakpoint.h.

Referenced by GetDescription(), and ThreadPlanStepOverBreakpoint().

◆ m_reenabled_breakpoint_site

bool lldb_private::ThreadPlanStepOverBreakpoint::m_reenabled_breakpoint_site
private

Definition at line 48 of file ThreadPlanStepOverBreakpoint.h.

Referenced by DoWillResume(), and ReenableBreakpointSite().


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