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

#include <ThreadPlanStepThrough.h>

Inheritance diagram for lldb_private::ThreadPlanStepThrough:
Inheritance graph

Public Member Functions

 ~ThreadPlanStepThrough () 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
bool MischiefManaged () override
void DidPush () override
- 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
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
 ThreadPlanStepThrough (Thread &thread, StackID &return_stack_id, bool stop_others)
void LookForPlanToStepThroughFromCurrentPC ()
bool HitOurBackstopBreakpoint ()
- 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

void ClearBackstopBreakpoint ()
 ThreadPlanStepThrough (const ThreadPlanStepThrough &)=delete
const ThreadPlanStepThroughoperator= (const ThreadPlanStepThrough &)=delete

Private Attributes

lldb::ThreadPlanSP m_sub_plan_sp
lldb::addr_t m_start_address
lldb::break_id_t m_backstop_bkpt_id
lldb::addr_t m_backstop_addr
StackID m_return_stack_id
bool m_stop_others


lldb::ThreadPlanSP Thread::QueueThreadPlanForStepThrough (StackID &return_stack_id, bool abort_other_plans, bool stop_others, Status &status)

Additional Inherited Members

- Public Types inherited from lldb_private::ThreadPlan
enum  ThreadPlanKind {
  eKindGeneric , eKindNull , eKindBase , eKindCallFunction ,
  eKindPython , eKindStepInstruction , eKindStepOut , eKindStepOverBreakpoint ,
  eKindStepOverRange , eKindStepInRange , eKindRunToAddress , eKindStepThrough ,
- Protected Attributes inherited from lldb_private::ThreadPlan
Status m_status
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 ThreadPlanStepThrough.h.

Constructor & Destructor Documentation

◆ ~ThreadPlanStepThrough()

ThreadPlanStepThrough::~ThreadPlanStepThrough ( )

Definition at line 73 of file ThreadPlanStepThrough.cpp.

References ClearBackstopBreakpoint().

◆ ThreadPlanStepThrough() [1/2]

ThreadPlanStepThrough::ThreadPlanStepThrough ( Thread thread,
StackID return_stack_id,
bool  stop_others 

◆ ThreadPlanStepThrough() [2/2]

lldb_private::ThreadPlanStepThrough::ThreadPlanStepThrough ( const ThreadPlanStepThrough )

Member Function Documentation

◆ ClearBackstopBreakpoint()

void ThreadPlanStepThrough::ClearBackstopBreakpoint ( )

◆ DidPush()

void ThreadPlanStepThrough::DidPush ( )

Reimplemented from lldb_private::ThreadPlan.

Definition at line 75 of file ThreadPlanStepThrough.cpp.

References m_sub_plan_sp, and lldb_private::ThreadPlan::PushPlan().

◆ DoPlanExplainsStop()

bool ThreadPlanStepThrough::DoPlanExplainsStop ( Event event_ptr)

Implements lldb_private::ThreadPlan.

Definition at line 153 of file ThreadPlanStepThrough.cpp.

References HitOurBackstopBreakpoint().

◆ DoWillResume()

bool ThreadPlanStepThrough::DoWillResume ( lldb::StateType  resume_state,
bool  current_plan 

Reimplemented from lldb_private::ThreadPlan.

Definition at line 215 of file ThreadPlanStepThrough.cpp.

◆ GetDescription()

void ThreadPlanStepThrough::GetDescription ( Stream s,
lldb::DescriptionLevel  level 

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]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 114 of file ThreadPlanStepThrough.cpp.

References lldb_private::Stream::AsRawOstream(), lldb_private::DumpAddress(), lldb::eDescriptionLevelBrief, LLDB_INVALID_BREAK_ID, m_backstop_addr, m_backstop_bkpt_id, m_start_address, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().

◆ GetPlanRunState()

StateType ThreadPlanStepThrough::GetPlanRunState ( )

Implements lldb_private::ThreadPlan.

Definition at line 213 of file ThreadPlanStepThrough.cpp.

References lldb::eStateRunning.

◆ HitOurBackstopBreakpoint()

bool ThreadPlanStepThrough::HitOurBackstopBreakpoint ( )

◆ LookForPlanToStepThroughFromCurrentPC()

void ThreadPlanStepThrough::LookForPlanToStepThroughFromCurrentPC ( )

◆ MischiefManaged()

bool ThreadPlanStepThrough::MischiefManaged ( )

◆ operator=()

const ThreadPlanStepThrough & lldb_private::ThreadPlanStepThrough::operator= ( const ThreadPlanStepThrough )

◆ ShouldStop()

bool ThreadPlanStepThrough::ShouldStop ( Event event_ptr)

◆ StopOthers()

bool ThreadPlanStepThrough::StopOthers ( )

Reimplemented from lldb_private::ThreadPlan.

Definition at line 211 of file ThreadPlanStepThrough.cpp.

References m_stop_others.

◆ ValidatePlan()

bool ThreadPlanStepThrough::ValidatePlan ( Stream error)

Returns whether this plan could be successfully created.

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

Implements lldb_private::ThreadPlan.

Definition at line 130 of file ThreadPlanStepThrough.cpp.

References error(), LLDB_INVALID_BREAK_ID, m_backstop_bkpt_id, lldb_private::ThreadPlan::m_could_not_resolve_hw_bp, and m_sub_plan_sp.

◆ WillStop()

bool ThreadPlanStepThrough::WillStop ( )

Implements lldb_private::ThreadPlan.

Definition at line 220 of file ThreadPlanStepThrough.cpp.

Friends And Related Function Documentation

◆ Thread::QueueThreadPlanForStepThrough

lldb::ThreadPlanSP Thread::QueueThreadPlanForStepThrough ( StackID return_stack_id,
bool  abort_other_plans,
bool  stop_others,
Status status 

Member Data Documentation

◆ m_backstop_addr

lldb::addr_t lldb_private::ThreadPlanStepThrough::m_backstop_addr

Definition at line 52 of file ThreadPlanStepThrough.h.

Referenced by GetDescription(), and ThreadPlanStepThrough().

◆ m_backstop_bkpt_id

lldb::break_id_t lldb_private::ThreadPlanStepThrough::m_backstop_bkpt_id

◆ m_return_stack_id

StackID lldb_private::ThreadPlanStepThrough::m_return_stack_id

Definition at line 53 of file ThreadPlanStepThrough.h.

Referenced by HitOurBackstopBreakpoint().

◆ m_start_address

lldb::addr_t lldb_private::ThreadPlanStepThrough::m_start_address

Definition at line 50 of file ThreadPlanStepThrough.h.

Referenced by GetDescription(), and ThreadPlanStepThrough().

◆ m_stop_others

bool lldb_private::ThreadPlanStepThrough::m_stop_others

Definition at line 54 of file ThreadPlanStepThrough.h.

Referenced by LookForPlanToStepThroughFromCurrentPC(), and StopOthers().

◆ m_sub_plan_sp

lldb::ThreadPlanSP lldb_private::ThreadPlanStepThrough::m_sub_plan_sp

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