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

#include <ThreadPlanRunToAddress.h>

Inheritance diagram for lldb_private::ThreadPlanRunToAddress:
Inheritance graph
[legend]

Public Member Functions

 ThreadPlanRunToAddress (Thread &thread, Address &address, bool stop_others)
 
 ThreadPlanRunToAddress (Thread &thread, lldb::addr_t address, bool stop_others)
 
 ThreadPlanRunToAddress (Thread &thread, const std::vector< lldb::addr_t > &addresses, bool stop_others)
 
 ~ThreadPlanRunToAddress () override
 
void GetDescription (Stream *s, lldb::DescriptionLevel level) override
 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
 
bool StopOthers () override
 
void SetStopOthers (bool new_value) override
 
lldb::StateType GetPlanRunState () override
 
bool WillStop () override
 
bool MischiefManaged () override
 
- 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 SupportsResumeOthers ()
 
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::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)
 
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.
 

Protected Member Functions

bool DoPlanExplainsStop (Event *event_ptr) override
 
void SetInitialBreakpoints ()
 
bool AtOurAddress ()
 
- 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)
 
bool IsUsuallyUnexplainedStopReason (lldb::StopReason)
 

Private Member Functions

 ThreadPlanRunToAddress (const ThreadPlanRunToAddress &)=delete
 
const ThreadPlanRunToAddressoperator= (const ThreadPlanRunToAddress &)=delete
 

Private Attributes

bool m_stop_others
 
std::vector< lldb::addr_tm_addresses
 
std::vector< lldb::break_id_tm_break_ids
 

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
}
 
- 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.
 

Detailed Description

Definition at line 19 of file ThreadPlanRunToAddress.h.

Constructor & Destructor Documentation

◆ ThreadPlanRunToAddress() [1/4]

ThreadPlanRunToAddress::ThreadPlanRunToAddress ( Thread thread,
Address address,
bool  stop_others 
)

◆ ThreadPlanRunToAddress() [2/4]

ThreadPlanRunToAddress::ThreadPlanRunToAddress ( Thread thread,
lldb::addr_t  address,
bool  stop_others 
)

◆ ThreadPlanRunToAddress() [3/4]

ThreadPlanRunToAddress::ThreadPlanRunToAddress ( Thread thread,
const std::vector< lldb::addr_t > &  addresses,
bool  stop_others 
)

◆ ~ThreadPlanRunToAddress()

ThreadPlanRunToAddress::~ThreadPlanRunToAddress ( )
override

◆ ThreadPlanRunToAddress() [4/4]

lldb_private::ThreadPlanRunToAddress::ThreadPlanRunToAddress ( const ThreadPlanRunToAddress )
privatedelete

Member Function Documentation

◆ AtOurAddress()

bool ThreadPlanRunToAddress::AtOurAddress ( )
protected

◆ DoPlanExplainsStop()

bool ThreadPlanRunToAddress::DoPlanExplainsStop ( Event event_ptr)
overrideprotectedvirtual

Implements lldb_private::ThreadPlan.

Definition at line 154 of file ThreadPlanRunToAddress.cpp.

References AtOurAddress().

◆ GetDescription()

void ThreadPlanRunToAddress::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 86 of file ThreadPlanRunToAddress.cpp.

References lldb_private::Stream::AsRawOstream(), lldb_private::Breakpoint::Dump(), lldb_private::DumpAddress(), lldb::eDescriptionLevelBrief, lldb_private::Target::GetBreakpointByID(), lldb_private::ThreadPlan::GetTarget(), lldb_private::Stream::Indent(), m_addresses, m_break_ids, and lldb_private::Stream::Printf().

◆ GetPlanRunState()

StateType ThreadPlanRunToAddress::GetPlanRunState ( )
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 168 of file ThreadPlanRunToAddress.cpp.

References lldb::eStateRunning.

◆ MischiefManaged()

bool ThreadPlanRunToAddress::MischiefManaged ( )
overridevirtual

◆ operator=()

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

◆ SetInitialBreakpoints()

void ThreadPlanRunToAddress::SetInitialBreakpoints ( )
protected

◆ SetStopOthers()

void ThreadPlanRunToAddress::SetStopOthers ( bool  new_value)
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 164 of file ThreadPlanRunToAddress.cpp.

References m_stop_others.

◆ ShouldStop()

bool ThreadPlanRunToAddress::ShouldStop ( Event event_ptr)
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 158 of file ThreadPlanRunToAddress.cpp.

References AtOurAddress().

◆ StopOthers()

bool ThreadPlanRunToAddress::StopOthers ( )
overridevirtual

Reimplemented from lldb_private::ThreadPlan.

Definition at line 162 of file ThreadPlanRunToAddress.cpp.

References m_stop_others.

◆ ValidatePlan()

bool ThreadPlanRunToAddress::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 131 of file ThreadPlanRunToAddress.cpp.

References lldb_private::DumpAddress(), error(), LLDB_INVALID_BREAK_ID, m_addresses, m_break_ids, and lldb_private::ThreadPlan::m_could_not_resolve_hw_bp.

◆ WillStop()

bool ThreadPlanRunToAddress::WillStop ( )
overridevirtual

Implements lldb_private::ThreadPlan.

Definition at line 170 of file ThreadPlanRunToAddress.cpp.

Member Data Documentation

◆ m_addresses

std::vector<lldb::addr_t> lldb_private::ThreadPlanRunToAddress::m_addresses
private

◆ m_break_ids

std::vector<lldb::break_id_t> lldb_private::ThreadPlanRunToAddress::m_break_ids
private

◆ m_stop_others

bool lldb_private::ThreadPlanRunToAddress::m_stop_others
private

Definition at line 55 of file ThreadPlanRunToAddress.h.

Referenced by SetStopOthers(), and StopOthers().


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