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

#include <ThreadPlanStepOverRange.h>

Inheritance diagram for lldb_private::ThreadPlanStepOverRange:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::ThreadPlanStepOverRange:
Collaboration graph
[legend]

Public Member Functions

 ThreadPlanStepOverRange (Thread &thread, const AddressRange &range, const SymbolContext &addr_context, lldb::RunMode stop_others, LazyBool step_out_avoids_no_debug)
 
 ~ThreadPlanStepOverRange () override
 
void GetDescription (Stream *s, lldb::DescriptionLevel level) override
 Print a description of this thread to the stream s. More...
 
bool ShouldStop (Event *event_ptr) 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. More...
 
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. More...
 
ThreadGetThread ()
 Returns the Thread that is using this thread plan. More...
 
TargetGetTarget ()
 
const TargetGetTarget () const
 
void ClearThreadCache ()
 Clear the Thread* cache. More...
 
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. More...
 
Vote ShouldReportRun (Event *event_ptr)
 
virtual void SetStopOthers (bool new_value)
 
bool WillResume (lldb::StateType resume_state, bool current_plan)
 
bool IsMasterPlan ()
 
bool SetIsMasterPlan (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::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)
 
- Public Member Functions inherited from lldb_private::UserID
 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID. More...
 
 ~UserID ()=default
 Destructor. More...
 
void Clear ()
 Clears the object state. More...
 
lldb::user_id_t GetID () const
 Get accessor for the user ID. More...
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID. More...
 

Protected Member Functions

bool DoPlanExplainsStop (Event *event_ptr) override
 
bool DoWillResume (lldb::StateType resume_state, bool current_plan) override
 
void SetFlagsToDefault () override
 
- 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 ()
 
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)
 
void PushPlan (lldb::ThreadPlanSP &thread_plan_sp)
 
ThreadPlanGetPreviousPlan ()
 
lldb::StopInfoSP GetPrivateStopInfo ()
 
void SetStopInfo (lldb::StopInfoSP stop_reason_sp)
 
bool IsUsuallyUnexplainedStopReason (lldb::StopReason)
 

Private Member Functions

void SetupAvoidNoDebug (LazyBool step_out_avoids_code_without_debug_info)
 
bool IsEquivalentContext (const SymbolContext &context)
 
 ThreadPlanStepOverRange (const ThreadPlanStepOverRange &)=delete
 
const ThreadPlanStepOverRangeoperator= (const ThreadPlanStepOverRange &)=delete
 
- Private 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
 
virtual lldb::ThreadPlanSP QueueStepOutFromHerePlan (Flags &flags, lldb::FrameComparison operation, Status &status)
 

Private Attributes

bool m_first_resume
 
- Private Attributes inherited from lldb_private::ThreadPlanShouldStopHere
ThreadPlanShouldStopHereCallbacks m_callbacks
 
void * m_baton
 
ThreadPlanm_owner
 
lldb_private::Flags m_flags
 

Static Private Attributes

static uint32_t s_default_flag_values = 0
 

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::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. More...
 
- Private Types inherited from lldb_private::ThreadPlanShouldStopHere
enum  { eNone = 0, eAvoidInlines = (1 << 0), eStepInAvoidNoDebug = (1 << 1), eStepOutAvoidNoDebug = (1 << 2) }
 
- Static Private 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)
 

Detailed Description

Definition at line 19 of file ThreadPlanStepOverRange.h.

Constructor & Destructor Documentation

◆ ThreadPlanStepOverRange() [1/2]

ThreadPlanStepOverRange::ThreadPlanStepOverRange ( Thread thread,
const AddressRange range,
const SymbolContext addr_context,
lldb::RunMode  stop_others,
LazyBool  step_out_avoids_no_debug 
)

Definition at line 31 of file ThreadPlanStepOverRange.cpp.

References SetFlagsToDefault(), and SetupAvoidNoDebug().

◆ ~ThreadPlanStepOverRange()

ThreadPlanStepOverRange::~ThreadPlanStepOverRange ( )
overridedefault

◆ ThreadPlanStepOverRange() [2/2]

lldb_private::ThreadPlanStepOverRange::ThreadPlanStepOverRange ( const ThreadPlanStepOverRange )
privatedelete

Member Function Documentation

◆ DoPlanExplainsStop()

bool ThreadPlanStepOverRange::DoPlanExplainsStop ( Event event_ptr)
overrideprotectedvirtual

◆ DoWillResume()

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

◆ GetDescription()

void ThreadPlanStepOverRange::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 45 of file ThreadPlanStepOverRange.cpp.

References lldb_private::Status::AsCString(), lldb_private::ThreadPlanStepRange::DumpRanges(), lldb_private::LineEntry::DumpStopContext(), lldb::eDescriptionLevelBrief, lldb::eDescriptionLevelVerbose, lldb_private::LineEntry::IsValid(), lldb_private::SymbolContext::line_entry, lldb_private::ThreadPlanStepRange::m_addr_context, lldb_private::ThreadPlan::m_status, lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), and lldb_private::Status::Success().

◆ IsEquivalentContext()

bool ThreadPlanStepOverRange::IsEquivalentContext ( const SymbolContext context)
private

◆ operator=()

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

◆ SetFlagsToDefault()

void lldb_private::ThreadPlanStepOverRange::SetFlagsToDefault ( )
inlineoverrideprotectedvirtual

◆ SetupAvoidNoDebug()

void ThreadPlanStepOverRange::SetupAvoidNoDebug ( LazyBool  step_out_avoids_code_without_debug_info)
private

◆ ShouldStop()

bool ThreadPlanStepOverRange::ShouldStop ( Event event_ptr)
overridevirtual

Implements lldb_private::ThreadPlanStepRange.

Definition at line 126 of file ThreadPlanStepOverRange.cpp.

References lldb_private::Stream::AsRawOstream(), lldb_private::SymbolContext::block, lldb_private::Address::CalculateSymbolContext(), lldb_private::Address::CalculateSymbolContextFunction(), lldb_private::ThreadPlanShouldStopHere::CheckShouldStopHereAndQueueStepOut(), lldb_private::ThreadPlanStepRange::ClearNextBranchBreakpoint(), lldb_private::SymbolContext::comp_unit, lldb_private::ThreadPlanStepRange::CompareCurrentFrameToStartFrame(), lldb_private::AddressRange::ContainsFileAddress(), lldb_private::DumpAddress(), lldb::eAllThreads, lldb::eFrameCompareOlder, lldb::eFrameCompareYounger, lldb::eOnlyThisThread, lldb_private::eVoteNo, lldb_private::eVoteNoOpinion, lldb_private::LineTable::FindLineEntryByAddress(), lldb_private::SymbolContext::function, lldb_private::AddressRange::GetBaseAddress(), lldb_private::Block::GetContainingInlinedBlock(), lldb_private::StreamString::GetData(), lldb_private::LineTable::GetLineEntryAtIndex(), lldb_private::CompileUnit::GetLineTable(), lldb_private::Address::GetLoadAddress(), lldb_private::GetLogIfAllCategoriesSet(), lldb_private::Block::GetRangeContainingAddress(), lldb_private::Thread::GetRegisterContext(), lldb_private::Thread::GetStackFrameAtIndex(), lldb_private::ThreadPlan::GetTarget(), lldb_private::ThreadPlan::GetThread(), lldb_private::ThreadPlanStepRange::InRange(), lldb_private::ThreadPlanStepRange::InSymbol(), IsEquivalentContext(), lldb_private::LineEntry::IsValid(), LIBLLDB_LOG_STEP, lldb_private::SymbolContext::line_entry, LLDB_LOGF, lldb_private::ThreadPlanStepRange::m_addr_context, lldb_private::ThreadPlanStepRange::m_next_branch_bp_sp, lldb_private::ThreadPlanStepRange::m_no_more_plans, lldb_private::ThreadPlanStepRange::m_stack_id, lldb_private::ThreadPlan::m_status, lldb_private::ThreadPlanStepRange::m_stop_others, lldb_private::LineEntry::original_file, lldb_private::Thread::QueueThreadPlanForStepOutNoShouldStop(), lldb_private::Thread::QueueThreadPlanForStepOverRange(), lldb_private::Thread::QueueThreadPlanForStepThrough(), lldb_private::LineEntry::range, lldb_private::ThreadPlanStepRange::SetNextBranchBreakpoint(), lldb_private::ThreadPlan::SetPlanComplete(), and lldb_private::Status::Success().

Member Data Documentation

◆ m_first_resume

bool lldb_private::ThreadPlanStepOverRange::m_first_resume
private

Definition at line 46 of file ThreadPlanStepOverRange.h.

Referenced by DoWillResume().

◆ s_default_flag_values

uint32_t ThreadPlanStepOverRange::s_default_flag_values = 0
staticprivate

Definition at line 41 of file ThreadPlanStepOverRange.h.

Referenced by SetFlagsToDefault().


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