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

#include <ThreadPlanStepUntil.h>

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

Public Member Functions

 ~ThreadPlanStepUntil () override
 
void GetDescription (Stream *s, lldb::DescriptionLevel level) override
 Print a description of this thread to the stream s. More...
 
bool ValidatePlan (Stream *error) override
 Returns whether this plan could be successfully created. More...
 
bool ShouldStop (Event *event_ptr) override
 
bool StopOthers () override
 
lldb::StateType GetPlanRunState () override
 
bool WillStop () override
 
bool MischiefManaged () override
 
- Public Member Functions inherited from lldb_private::ThreadPlan
 ThreadPlan (ThreadPlanKind kind, const char *name, Thread &thread, Vote stop_vote, Vote run_vote)
 
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
 
bool TracerExplainsStop ()
 
lldb::StateType RunState ()
 
bool PlanExplainsStop (Event *event_ptr)
 
virtual bool ShouldAutoContinue (Event *event_ptr)
 
virtual Vote ShouldReportStop (Event *event_ptr)
 
virtual 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 DidPush ()
 
virtual void WillPop ()
 
void PushPlan (lldb::ThreadPlanSP &thread_plan_sp)
 
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::StopInfoSP GetRealStopInfo ()
 
virtual lldb::ValueObjectSP GetReturnValueObject ()
 
virtual lldb::ExpressionVariableSP GetExpressionVariable ()
 
virtual bool RestoreThreadState ()
 
virtual bool IsVirtualStep ()
 
virtual bool SetIterationCount (size_t count)
 
virtual size_t GetIterationCount ()
 
- Public Member Functions inherited from lldb_private::UserID
 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID. More...
 
 ~UserID ()
 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 DoWillResume (lldb::StateType resume_state, bool current_plan) override
 
bool DoPlanExplainsStop (Event *event_ptr) override
 
 ThreadPlanStepUntil (Thread &thread, lldb::addr_t *address_list, size_t num_addresses, bool stop_others, uint32_t frame_idx=0)
 
void AnalyzeStop ()
 
- Protected Member Functions inherited from lldb_private::ThreadPlan
ThreadPlanGetPreviousPlan ()
 
lldb::StopInfoSP GetPrivateStopInfo ()
 
void SetStopInfo (lldb::StopInfoSP stop_reason_sp)
 
void CachePlanExplainsStop (bool does_explain)
 
LazyBool GetCachedPlanExplainsStop () const
 
bool IsUsuallyUnexplainedStopReason (lldb::StopReason)
 

Private Types

typedef std::map< lldb::addr_t, lldb::break_id_tuntil_collection
 

Private Member Functions

void Clear ()
 
 ThreadPlanStepUntil (const ThreadPlanStepUntil &)=delete
 
const ThreadPlanStepUntiloperator= (const ThreadPlanStepUntil &)=delete
 

Private Attributes

StackID m_stack_id
 
lldb::addr_t m_step_from_insn
 
lldb::break_id_t m_return_bp_id
 
lldb::addr_t m_return_addr
 
bool m_stepped_out
 
bool m_should_stop
 
bool m_ran_analyze
 
bool m_explains_stop
 
until_collection m_until_points
 
bool m_stop_others
 

Friends

lldb::ThreadPlanSP Thread::QueueThreadPlanForStepUntil (bool abort_other_plans, lldb::addr_t *address_list, size_t num_addresses, bool stop_others, uint32_t frame_idx, Status &status)
 

Additional Inherited Members

- Public Types inherited from lldb_private::ThreadPlan
enum  ThreadScope { eAllThreads, eSomeThreads, eThisThread }
 
enum  ThreadPlanKind {
  eKindGeneric, eKindNull, eKindBase, eKindCallFunction,
  eKindPython, eKindStepInstruction, eKindStepOut, eKindStepOverBreakpoint,
  eKindStepOverRange, eKindStepInRange, eKindRunToAddress, eKindStepThrough,
  eKindStepUntil, eKindTestCondition
}
 
- Protected Attributes inherited from lldb_private::ThreadPlan
Status m_status
 
Processm_process
 
lldb::tid_t m_tid
 
Vote m_stop_vote
 
Vote m_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...
 

Detailed Description

Definition at line 17 of file ThreadPlanStepUntil.h.

Member Typedef Documentation

◆ until_collection

Definition at line 49 of file ThreadPlanStepUntil.h.

Constructor & Destructor Documentation

◆ ~ThreadPlanStepUntil()

ThreadPlanStepUntil::~ThreadPlanStepUntil ( )
override

Definition at line 79 of file ThreadPlanStepUntil.cpp.

References Clear().

◆ ThreadPlanStepUntil() [1/2]

ThreadPlanStepUntil::ThreadPlanStepUntil ( Thread thread,
lldb::addr_t address_list,
size_t  num_addresses,
bool  stop_others,
uint32_t  frame_idx = 0 
)
protected

◆ ThreadPlanStepUntil() [2/2]

lldb_private::ThreadPlanStepUntil::ThreadPlanStepUntil ( const ThreadPlanStepUntil )
privatedelete

Member Function Documentation

◆ AnalyzeStop()

void ThreadPlanStepUntil::AnalyzeStop ( )
protected

◆ Clear()

void ThreadPlanStepUntil::Clear ( )
private

◆ DoPlanExplainsStop()

bool ThreadPlanStepUntil::DoPlanExplainsStop ( Event event_ptr)
overrideprotectedvirtual

Implements lldb_private::ThreadPlan.

Definition at line 252 of file ThreadPlanStepUntil.cpp.

References AnalyzeStop(), and m_explains_stop.

◆ DoWillResume()

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

◆ GetDescription()

void ThreadPlanStepUntil::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::ThreadPlan.

Definition at line 96 of file ThreadPlanStepUntil.cpp.

References lldb::eDescriptionLevelBrief, m_return_addr, m_step_from_insn, m_stepped_out, m_until_points, and lldb_private::Stream::Printf().

◆ GetPlanRunState()

StateType ThreadPlanStepUntil::GetPlanRunState ( )
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 274 of file ThreadPlanStepUntil.cpp.

References lldb::eStateRunning.

◆ MischiefManaged()

bool ThreadPlanStepUntil::MischiefManaged ( )
overridevirtual

◆ operator=()

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

◆ ShouldStop()

bool ThreadPlanStepUntil::ShouldStop ( Event event_ptr)
overridevirtual

◆ StopOthers()

bool ThreadPlanStepUntil::StopOthers ( )
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 272 of file ThreadPlanStepUntil.cpp.

References m_stop_others.

◆ ValidatePlan()

bool ThreadPlanStepUntil::ValidatePlan ( Stream error)
overridevirtual

Returns whether this plan could be successfully created.

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

Implements lldb_private::ThreadPlan.

Definition at line 123 of file ThreadPlanStepUntil.cpp.

References LLDB_BREAK_ID_IS_VALID, LLDB_INVALID_BREAK_ID, lldb_private::ThreadPlan::m_could_not_resolve_hw_bp, m_return_bp_id, m_until_points, and lldb_private::Stream::PutCString().

◆ WillStop()

bool ThreadPlanStepUntil::WillStop ( )
overridevirtual

Friends And Related Function Documentation

◆ Thread::QueueThreadPlanForStepUntil

lldb::ThreadPlanSP Thread::QueueThreadPlanForStepUntil ( bool  abort_other_plans,
lldb::addr_t address_list,
size_t  num_addresses,
bool  stop_others,
uint32_t  frame_idx,
Status status 
)
friend

Member Data Documentation

◆ m_explains_stop

bool lldb_private::ThreadPlanStepUntil::m_explains_stop
private

Definition at line 47 of file ThreadPlanStepUntil.h.

Referenced by AnalyzeStop(), DoPlanExplainsStop(), and DoWillResume().

◆ m_ran_analyze

bool lldb_private::ThreadPlanStepUntil::m_ran_analyze
private

Definition at line 46 of file ThreadPlanStepUntil.h.

Referenced by AnalyzeStop(), and DoWillResume().

◆ m_return_addr

lldb::addr_t lldb_private::ThreadPlanStepUntil::m_return_addr
private

Definition at line 43 of file ThreadPlanStepUntil.h.

Referenced by GetDescription(), and ThreadPlanStepUntil().

◆ m_return_bp_id

lldb::break_id_t lldb_private::ThreadPlanStepUntil::m_return_bp_id
private

◆ m_should_stop

bool lldb_private::ThreadPlanStepUntil::m_should_stop
private

Definition at line 45 of file ThreadPlanStepUntil.h.

Referenced by AnalyzeStop(), DoWillResume(), and ShouldStop().

◆ m_stack_id

StackID lldb_private::ThreadPlanStepUntil::m_stack_id
private

Definition at line 40 of file ThreadPlanStepUntil.h.

Referenced by AnalyzeStop(), and ThreadPlanStepUntil().

◆ m_step_from_insn

lldb::addr_t lldb_private::ThreadPlanStepUntil::m_step_from_insn
private

Definition at line 41 of file ThreadPlanStepUntil.h.

Referenced by GetDescription(), and ThreadPlanStepUntil().

◆ m_stepped_out

bool lldb_private::ThreadPlanStepUntil::m_stepped_out
private

Definition at line 44 of file ThreadPlanStepUntil.h.

Referenced by AnalyzeStop(), and GetDescription().

◆ m_stop_others

bool lldb_private::ThreadPlanStepUntil::m_stop_others
private

Definition at line 51 of file ThreadPlanStepUntil.h.

Referenced by StopOthers().

◆ m_until_points

until_collection lldb_private::ThreadPlanStepUntil::m_until_points
private

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