LLDB mainline
lldb_private::ThreadPlanStepInRange Class Reference

#include <ThreadPlanStepInRange.h>

Inheritance diagram for lldb_private::ThreadPlanStepInRange:
[legend]

Public Member Functions

 ThreadPlanStepInRange (Thread &thread, const AddressRange &range, const SymbolContext &addr_context, const char *step_into_target, lldb::RunMode stop_others, LazyBool step_in_avoids_code_without_debug_info, LazyBool step_out_avoids_code_without_debug_info)
 ~ThreadPlanStepInRange () override
void GetDescription (Stream *s, lldb::DescriptionLevel level) override
 Print a description of this thread to the stream s.
bool ShouldStop (Event *event_ptr) override
void SetAvoidRegexp (const char *name)
bool IsVirtualStep () override
Public Member Functions inherited from lldb_private::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 () override
bool ValidatePlan (Stream *error) override
 Returns whether this plan could be successfully created.
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.
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.
Vote ShouldReportRun (Event *event_ptr)
virtual void SetStopOthers (bool new_value)
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 DidPop ()
ThreadPlanKind GetKind () const
bool IsPlanComplete ()
void SetPlanComplete (bool success=true)
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 ()
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.
Public Member Functions inherited from lldb_private::ThreadPlanShouldStopHere
 ThreadPlanShouldStopHere (ThreadPlan *owner)
 ThreadPlanShouldStopHere (ThreadPlan *owner, const ThreadPlanShouldStopHereCallbacks *callbacks, void *baton=nullptr)
virtual ~ThreadPlanShouldStopHere ()
void SetShouldStopHereCallbacks (const ThreadPlanShouldStopHereCallbacks *callbacks, void *baton)
void ClearShouldStopHereCallbacks ()
bool InvokeShouldStopHereCallback (lldb::FrameComparison operation, Status &status)
lldb::ThreadPlanSP CheckShouldStopHereAndQueueStepOut (lldb::FrameComparison operation, Status &status)
lldb_private::FlagsGetFlags ()
const lldb_private::FlagsGetFlags () const

Static Public Member Functions

static void SetDefaultFlagValue (uint32_t new_value)
static uint32_t GetDefaultFlagsValue ()

Protected Member Functions

bool DoWillResume (lldb::StateType resume_state, bool current_plan) override
bool DoPlanExplainsStop (Event *event_ptr) override
void SetFlagsToDefault () override
void SetCallbacks ()
bool FrameMatchesAvoidCriteria ()
Protected Member Functions inherited from lldb_private::ThreadPlanStepRange
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 ()
bool IsNextBranchBreakpointStop (lldb::StopInfoSP stop_info_sp)
void ClearNextBranchBreakpoint ()
void ClearNextBranchBreakpointExplainedStop ()
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)
void PushPlan (lldb::ThreadPlanSP &thread_plan_sp)
ThreadPlanGetPreviousPlan ()
lldb::StopInfoSP GetPrivateStopInfo ()
void SetStopInfo (lldb::StopInfoSP stop_reason_sp)
bool IsUsuallyUnexplainedStopReason (lldb::StopReason)
Protected Member Functions inherited from lldb_private::ThreadPlanShouldStopHere
virtual lldb::ThreadPlanSP QueueStepOutFromHerePlan (Flags &flags, lldb::FrameComparison operation, Status &status)

Static Protected Member Functions

static bool DefaultShouldStopHereCallback (ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation, Status &status, void *baton)
Static Protected Member Functions inherited from lldb_private::ThreadPlanShouldStopHere
static bool DefaultShouldStopHereCallback (ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation, Status &status, void *baton)
static lldb::ThreadPlanSP DefaultStepFromHereCallback (ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation, Status &status, void *baton)

Private Member Functions

void SetupAvoidNoDebug (LazyBool step_in_avoids_code_without_debug_info, LazyBool step_out_avoids_code_without_debug_info)
 ThreadPlanStepInRange (const ThreadPlanStepInRange &)=delete
const ThreadPlanStepInRangeoperator= (const ThreadPlanStepInRange &)=delete

Private Attributes

lldb::ThreadPlanSP m_sub_plan_sp
std::unique_ptr< RegularExpressionm_avoid_regexp_up
bool m_step_past_prologue
LazyBool m_virtual_step
ConstString m_step_into_target

Static Private Attributes

static uint32_t s_default_flag_values

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
}
Public Types inherited from lldb_private::ThreadPlanShouldStopHere
enum  {
  eNone = 0 , eAvoidInlines = (1 << 0) , eStepInAvoidNoDebug = (1 << 1) , eStepOutAvoidNoDebug = (1 << 2) ,
  eStepOutPastThunks = (1 << 3)
}
Protected Attributes inherited from lldb_private::ThreadPlanStepRange
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
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.
Protected Attributes inherited from lldb_private::ThreadPlanShouldStopHere
ThreadPlanShouldStopHereCallbacks m_callbacks
void * m_baton
ThreadPlanm_owner
lldb_private::Flags m_flags

Detailed Description

Definition at line 20 of file ThreadPlanStepInRange.h.

Constructor & Destructor Documentation

◆ ThreadPlanStepInRange() [1/2]

ThreadPlanStepInRange::ThreadPlanStepInRange ( Thread & thread,
const AddressRange & range,
const SymbolContext & addr_context,
const char * step_into_target,
lldb::RunMode stop_others,
LazyBool step_in_avoids_code_without_debug_info,
LazyBool step_out_avoids_code_without_debug_info )

◆ ~ThreadPlanStepInRange()

ThreadPlanStepInRange::~ThreadPlanStepInRange ( )
overridedefault

◆ ThreadPlanStepInRange() [2/2]

lldb_private::ThreadPlanStepInRange::ThreadPlanStepInRange ( const ThreadPlanStepInRange & )
privatedelete

Member Function Documentation

◆ DefaultShouldStopHereCallback()

◆ DoPlanExplainsStop()

◆ DoWillResume()

◆ FrameMatchesAvoidCriteria()

◆ GetDefaultFlagsValue()

uint32_t lldb_private::ThreadPlanStepInRange::GetDefaultFlagsValue ( )
inlinestatic

◆ GetDescription()

void ThreadPlanStepInRange::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::ThreadPlanStepRange.

Definition at line 92 of file ThreadPlanStepInRange.cpp.

References lldb_private::ThreadPlanStepRange::DumpRanges(), lldb::eDescriptionLevelBrief, lldb::eDescriptionLevelVerbose, lldb_private::ThreadPlanStepRange::m_addr_context, lldb_private::ThreadPlan::m_status, m_step_into_target, lldb_private::Stream::Printf(), and lldb_private::Stream::PutChar().

◆ IsVirtualStep()

bool ThreadPlanStepInRange::IsVirtualStep ( )
overridevirtual

◆ operator=()

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

◆ SetAvoidRegexp()

void ThreadPlanStepInRange::SetAvoidRegexp ( const char * name)

◆ SetCallbacks()

void lldb_private::ThreadPlanStepInRange::SetCallbacks ( )
inlineprotected

◆ SetDefaultFlagValue()

void ThreadPlanStepInRange::SetDefaultFlagValue ( uint32_t new_value)
static

Definition at line 302 of file ThreadPlanStepInRange.cpp.

References s_default_flag_values.

◆ SetFlagsToDefault()

void lldb_private::ThreadPlanStepInRange::SetFlagsToDefault ( )
inlineoverrideprotectedvirtual

◆ SetupAvoidNoDebug()

◆ ShouldStop()

bool ThreadPlanStepInRange::ShouldStop ( Event * event_ptr)
overridevirtual

Implements lldb_private::ThreadPlanStepRange.

Definition at line 129 of file ThreadPlanStepInRange.cpp.

References lldb_private::Stream::AsRawOstream(), lldb_private::ThreadPlanShouldStopHere::CheckShouldStopHereAndQueueStepOut(), lldb_private::ThreadPlanStepRange::ClearNextBranchBreakpoint(), lldb_private::ThreadPlanStepRange::ClearNextBranchBreakpointExplainedStop(), lldb_private::ThreadPlanStepRange::CompareCurrentFrameToStartFrame(), lldb_private::DumpAddress(), lldb::eFrameCompareEqual, lldb::eFrameCompareOlder, lldb::eFrameCompareSameParent, lldb::eFrameCompareYounger, lldb_private::eLazyBoolYes, lldb::eOnlyThisThread, lldb_private::SymbolContext::function, lldb_private::Function::GetAddress(), lldb_private::Symbol::GetAddress(), lldb_private::Target::GetArchitecturePlugin(), lldb_private::Architecture::GetBytesToSkip(), lldb_private::StreamString::GetData(), lldb_private::Address::GetLoadAddress(), lldb_private::GetLog(), lldb_private::Function::GetPrologueByteSize(), lldb_private::Symbol::GetPrologueByteSize(), lldb_private::ThreadPlan::GetTarget(), lldb_private::ThreadPlan::GetThread(), lldb_private::ThreadPlanStepRange::InRange(), lldb_private::ThreadPlanStepRange::InSymbol(), lldb_private::ThreadPlan::IsPlanComplete(), LLDB_LOGF, lldb_private::ThreadPlanStepRange::m_no_more_plans, lldb_private::ThreadPlanStepRange::m_stack_id, lldb_private::ThreadPlan::m_status, m_step_past_prologue, lldb_private::ThreadPlanStepRange::m_stop_others, m_sub_plan_sp, m_virtual_step, lldb_private::Target::ResolveLoadAddress(), lldb_private::ThreadPlanStepRange::SetNextBranchBreakpoint(), lldb_private::ThreadPlan::SetPlanComplete(), lldb_private::Address::Slide(), lldb_private::Step, and lldb_private::SymbolContext::symbol.

Member Data Documentation

◆ m_avoid_regexp_up

std::unique_ptr<RegularExpression> lldb_private::ThreadPlanStepInRange::m_avoid_regexp_up
private

Definition at line 79 of file ThreadPlanStepInRange.h.

Referenced by FrameMatchesAvoidCriteria(), and SetAvoidRegexp().

◆ m_step_into_target

ConstString lldb_private::ThreadPlanStepInRange::m_step_into_target
private

◆ m_step_past_prologue

bool lldb_private::ThreadPlanStepInRange::m_step_past_prologue
private

Definition at line 80 of file ThreadPlanStepInRange.h.

Referenced by ShouldStop(), and ThreadPlanStepInRange().

◆ m_sub_plan_sp

lldb::ThreadPlanSP lldb_private::ThreadPlanStepInRange::m_sub_plan_sp
private

Definition at line 77 of file ThreadPlanStepInRange.h.

Referenced by ShouldStop().

◆ m_virtual_step

LazyBool lldb_private::ThreadPlanStepInRange::m_virtual_step
private

◆ s_default_flag_values


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