LLDB mainline
|
#include <ThreadPlanStepOverRange.h>
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. | |
void | SetStopOthers (bool new_value) override |
bool | ShouldStop (Event *event_ptr) override |
void | DidPush () 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 | |
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. | |
Thread & | GetThread () |
Returns the Thread that is using this thread plan. | |
Target & | GetTarget () |
const Target & | GetTarget () 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 () |
virtual bool | IsLeafPlan () |
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::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) |
virtual lldb::StateType | GetPlanRunState ()=0 |
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. | |
Private Attributes | |
bool | m_first_resume |
lldb::RunMode | m_run_mode |
Private Attributes inherited from lldb_private::ThreadPlanShouldStopHere | |
ThreadPlanShouldStopHereCallbacks | m_callbacks |
void * | m_baton |
ThreadPlan * | m_owner |
lldb_private::Flags | m_flags |
Static Private Attributes | |
static uint32_t | s_default_flag_values = 0 |
Definition at line 20 of file ThreadPlanStepOverRange.h.
ThreadPlanStepOverRange::ThreadPlanStepOverRange | ( | Thread & | thread, |
const AddressRange & | range, | ||
const SymbolContext & | addr_context, | ||
lldb::RunMode | stop_others, | ||
LazyBool | step_out_avoids_no_debug | ||
) |
Definition at line 33 of file ThreadPlanStepOverRange.cpp.
References SetFlagsToDefault(), and SetupAvoidNoDebug().
|
overridedefault |
|
privatedelete |
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 350 of file ThreadPlanStepOverRange.cpp.
References lldb_private::ThreadPlanStepRange::DidPush(), lldb::eOnlyThisThread, lldb_private::ThreadPlan::IsControllingPlan(), m_run_mode, and lldb_private::TimeoutResumeAll::PushNewTimeout().
|
overrideprotectedvirtual |
Implements lldb_private::ThreadPlan.
Definition at line 356 of file ThreadPlanStepOverRange.cpp.
References lldb::eStopReasonBreakpoint, lldb::eStopReasonTrace, lldb_private::GetLog(), lldb_private::ThreadPlan::GetPrivateStopInfo(), lldb_private::ThreadPlanStepRange::NextRangeBreakpointExplainsStop(), lldb_private::Log::PutCString(), and lldb_private::Step.
|
overrideprotectedvirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 387 of file ThreadPlanStepOverRange.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::Thread::DecrementCurrentInlinedDepth(), lldb_private::ThreadPlanStepRange::DumpRanges(), lldb::eOnlyThisThread, lldb::eStateStepping, lldb::eStateSuspended, lldb_private::Thread::GetCurrentInlinedDepth(), lldb_private::Block::GetInlinedFunctionInfo(), lldb_private::GetLog(), lldb_private::InlineFunctionInfo::GetName(), lldb_private::Block::GetRangeContainingLoadAddress(), lldb_private::Thread::GetRegisterContext(), lldb_private::Thread::GetStackFrameAtIndex(), lldb_private::StreamString::GetString(), lldb_private::Process::GetTarget(), lldb_private::ThreadPlan::GetThread(), lldb_private::ThreadPlan::IsControllingPlan(), LLDB_LOGF, lldb_private::ThreadPlanStepRange::m_address_ranges, m_first_resume, lldb_private::ThreadPlan::m_process, m_run_mode, lldb_private::Stream::Printf(), lldb_private::Log::PutString(), lldb_private::TimeoutResumeAll::ResumeWithTimeout(), and lldb_private::Step.
|
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.
[in] | s | The stream to which to print the description. |
[in] | level | The 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 48 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().
|
private |
Definition at line 104 of file ThreadPlanStepOverRange.cpp.
References lldb_private::SymbolContext::block, lldb_private::SymbolContext::comp_unit, lldb_private::SymbolContext::function, lldb_private::Block::GetInlinedFunctionInfo(), lldb_private::ThreadPlanStepRange::m_addr_context, and lldb_private::SymbolContext::symbol.
Referenced by ShouldStop().
|
privatedelete |
|
inlineoverrideprotectedvirtual |
Implements lldb_private::ThreadPlanShouldStopHere.
Definition at line 40 of file ThreadPlanStepOverRange.h.
References lldb_private::ThreadPlanShouldStopHere::GetFlags(), s_default_flag_values, and lldb_private::Flags::Set().
Referenced by ThreadPlanStepOverRange().
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 129 of file ThreadPlanStepOverRange.cpp.
References lldb_private::ThreadPlanStepRange::m_stop_others.
|
private |
Definition at line 80 of file ThreadPlanStepOverRange.cpp.
References lldb_private::Flags::Clear(), lldb_private::eLazyBoolCalculate, lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, lldb_private::ThreadPlanShouldStopHere::eStepInAvoidNoDebug, lldb_private::ThreadPlanShouldStopHere::eStepOutAvoidNoDebug, lldb_private::ThreadPlanShouldStopHere::GetFlags(), lldb_private::ThreadProperties::GetStepOutAvoidsNoDebug(), lldb_private::ThreadPlan::GetThread(), and lldb_private::Flags::Set().
Referenced by ThreadPlanStepOverRange().
|
overridevirtual |
Implements lldb_private::ThreadPlanStepRange.
Definition at line 134 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::ThreadPlanStepRange::ClearNextBranchBreakpointExplainedStop(), lldb_private::SymbolContext::comp_unit, lldb_private::ThreadPlanStepRange::CompareCurrentFrameToStartFrame(), lldb_private::AddressRange::ContainsFileAddress(), lldb_private::DumpAddress(), lldb_private::SupportFile::eEqualFileSpecAndChecksumIfSet, 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::GetLog(), 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(), 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_sp, lldb_private::Thread::QueueThreadPlanForStepOutNoShouldStop(), lldb_private::Thread::QueueThreadPlanForStepOverRange(), lldb_private::Thread::QueueThreadPlanForStepThrough(), lldb_private::LineEntry::range, lldb_private::ThreadPlanStepRange::SetNextBranchBreakpoint(), lldb_private::ThreadPlan::SetPlanComplete(), lldb_private::Step, and lldb_private::Status::Success().
|
private |
Definition at line 50 of file ThreadPlanStepOverRange.h.
Referenced by DoWillResume().
|
private |
Definition at line 51 of file ThreadPlanStepOverRange.h.
Referenced by DidPush(), and DoWillResume().
|
staticprivate |
Definition at line 45 of file ThreadPlanStepOverRange.h.
Referenced by SetFlagsToDefault().