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

#include <ThreadPlanStepRange.h>

Inheritance diagram for lldb_private::ThreadPlanStepRange:
Inheritance graph

Public Member Functions

 ThreadPlanStepRange (ThreadPlanKind kind, const char *name, Thread &thread, const AddressRange &range, const SymbolContext &addr_context, lldb::RunMode stop_others, bool given_ranges_only=false)
 ~ThreadPlanStepRange () override
void GetDescription (Stream *s, lldb::DescriptionLevel level) override=0
 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=0
Vote ShouldReportStop (Event *event_ptr) override
bool StopOthers () override
lldb::StateType GetPlanRunState () override
bool WillStop () override
bool MischiefManaged () override
void DidPush () override
bool IsPlanStale () override
void AddRange (const AddressRange &new_range)
- 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 InRange ()
lldb::FrameComparison CompareCurrentFrameToStartFrame ()
bool InSymbol ()
void DumpRanges (Stream *s)
DisassemblerGetDisassembler ()
InstructionListGetInstructionsForAddress (lldb::addr_t addr, size_t &range_index, size_t &insn_offset)
bool SetNextBranchBreakpoint ()
void ClearNextBranchBreakpoint ()
bool NextRangeBreakpointExplainsStop (lldb::StopInfoSP stop_info_sp)
- 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)

Protected Attributes

SymbolContext m_addr_context
std::vector< AddressRangem_address_ranges
lldb::RunMode m_stop_others
StackID m_stack_id
StackID m_parent_stack_id
bool m_no_more_plans
bool m_first_run_event
lldb::BreakpointSP m_next_branch_bp_sp
bool m_use_fast_step
bool m_given_ranges_only
bool m_found_calls = false
- 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.

Private Member Functions

 ThreadPlanStepRange (const ThreadPlanStepRange &)=delete
const ThreadPlanStepRangeoperator= (const ThreadPlanStepRange &)=delete

Private Attributes

std::vector< lldb::DisassemblerSPm_instruction_ranges

Additional Inherited Members

- Public Types inherited from lldb_private::ThreadPlan
enum  ThreadPlanKind {
  eKindGeneric , eKindNull , eKindBase , eKindCallFunction ,
  eKindPython , eKindStepInstruction , eKindStepOut , eKindStepOverBreakpoint ,
  eKindStepOverRange , eKindStepInRange , eKindRunToAddress , eKindStepThrough ,

Detailed Description

Definition at line 20 of file ThreadPlanStepRange.h.

Constructor & Destructor Documentation

◆ ThreadPlanStepRange() [1/2]

ThreadPlanStepRange::ThreadPlanStepRange ( ThreadPlanKind  kind,
const char *  name,
Thread thread,
const AddressRange range,
const SymbolContext addr_context,
lldb::RunMode  stop_others,
bool  given_ranges_only = false 

◆ ~ThreadPlanStepRange()

ThreadPlanStepRange::~ThreadPlanStepRange ( )

Definition at line 51 of file ThreadPlanStepRange.cpp.

References ClearNextBranchBreakpoint().

◆ ThreadPlanStepRange() [2/2]

lldb_private::ThreadPlanStepRange::ThreadPlanStepRange ( const ThreadPlanStepRange )

Member Function Documentation

◆ AddRange()

void ThreadPlanStepRange::AddRange ( const AddressRange new_range)

◆ ClearNextBranchBreakpoint()

void ThreadPlanStepRange::ClearNextBranchBreakpoint ( )

◆ CompareCurrentFrameToStartFrame()

lldb::FrameComparison ThreadPlanStepRange::CompareCurrentFrameToStartFrame ( )

◆ DidPush()

void ThreadPlanStepRange::DidPush ( )

Reimplemented from lldb_private::ThreadPlan.

Definition at line 53 of file ThreadPlanStepRange.cpp.

References SetNextBranchBreakpoint().

◆ DumpRanges()

void ThreadPlanStepRange::DumpRanges ( Stream s)

◆ GetDescription()

void lldb_private::ThreadPlanStepRange::GetDescription ( Stream s,
lldb::DescriptionLevel  level 
overridepure virtual

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.

Implemented in lldb_private::ThreadPlanStepInRange, and lldb_private::ThreadPlanStepOverRange.

◆ GetDisassembler()

Disassembler * lldb_private::ThreadPlanStepRange::GetDisassembler ( )

◆ GetInstructionsForAddress()

InstructionList * ThreadPlanStepRange::GetInstructionsForAddress ( lldb::addr_t  addr,
size_t &  range_index,
size_t &  insn_offset 

◆ GetPlanRunState()

StateType ThreadPlanStepRange::GetPlanRunState ( )

◆ InRange()

bool ThreadPlanStepRange::InRange ( )

◆ InSymbol()

bool ThreadPlanStepRange::InSymbol ( )

◆ IsPlanStale()

bool ThreadPlanStepRange::IsPlanStale ( )

◆ MischiefManaged()

bool ThreadPlanStepRange::MischiefManaged ( )

◆ NextRangeBreakpointExplainsStop()

bool ThreadPlanStepRange::NextRangeBreakpointExplainsStop ( lldb::StopInfoSP  stop_info_sp)

◆ operator=()

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

◆ SetNextBranchBreakpoint()

bool ThreadPlanStepRange::SetNextBranchBreakpoint ( )

◆ ShouldReportStop()

Vote ThreadPlanStepRange::ShouldReportStop ( Event event_ptr)

◆ ShouldStop()

bool lldb_private::ThreadPlanStepRange::ShouldStop ( Event event_ptr)
overridepure virtual

◆ StopOthers()

bool ThreadPlanStepRange::StopOthers ( )

◆ ValidatePlan()

bool ThreadPlanStepRange::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 58 of file ThreadPlanStepRange.cpp.

References error(), and lldb_private::ThreadPlan::m_could_not_resolve_hw_bp.

Referenced by lldb_private::ThreadPlanStepOut::QueueInlinedStepPlan().

◆ WillStop()

bool ThreadPlanStepRange::WillStop ( )

Implements lldb_private::ThreadPlan.

Definition at line 425 of file ThreadPlanStepRange.cpp.

Member Data Documentation

◆ m_addr_context

SymbolContext lldb_private::ThreadPlanStepRange::m_addr_context

◆ m_address_ranges

std::vector<AddressRange> lldb_private::ThreadPlanStepRange::m_address_ranges

◆ m_first_run_event

bool lldb_private::ThreadPlanStepRange::m_first_run_event

Definition at line 74 of file ThreadPlanStepRange.h.

◆ m_found_calls

bool lldb_private::ThreadPlanStepRange::m_found_calls = false

◆ m_given_ranges_only

bool lldb_private::ThreadPlanStepRange::m_given_ranges_only

Definition at line 78 of file ThreadPlanStepRange.h.

Referenced by InRange().

◆ m_instruction_ranges

std::vector<lldb::DisassemblerSP> lldb_private::ThreadPlanStepRange::m_instruction_ranges

Definition at line 87 of file ThreadPlanStepRange.h.

Referenced by AddRange(), and GetInstructionsForAddress().

◆ m_next_branch_bp_sp

lldb::BreakpointSP lldb_private::ThreadPlanStepRange::m_next_branch_bp_sp

◆ m_no_more_plans

bool lldb_private::ThreadPlanStepRange::m_no_more_plans

◆ m_parent_stack_id

StackID lldb_private::ThreadPlanStepRange::m_parent_stack_id

Definition at line 69 of file ThreadPlanStepRange.h.

Referenced by CompareCurrentFrameToStartFrame(), and ThreadPlanStepRange().

◆ m_stack_id

StackID lldb_private::ThreadPlanStepRange::m_stack_id

◆ m_stop_others

lldb::RunMode lldb_private::ThreadPlanStepRange::m_stop_others

◆ m_use_fast_step

bool lldb_private::ThreadPlanStepRange::m_use_fast_step

Definition at line 77 of file ThreadPlanStepRange.h.

Referenced by SetNextBranchBreakpoint(), and ThreadPlanStepRange().

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