LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb::SBThreadPlan Class Reference

#include <SBThreadPlan.h>

Collaboration diagram for lldb::SBThreadPlan:
Collaboration graph
[legend]

Public Member Functions

 SBThreadPlan ()
 
 SBThreadPlan (const lldb::SBThreadPlan &threadPlan)
 
 SBThreadPlan (const lldb::ThreadPlanSP &lldb_object_sp)
 
 SBThreadPlan (lldb::SBThread &thread, const char *class_name)
 
 SBThreadPlan (lldb::SBThread &thread, const char *class_name, lldb::SBStructuredData &args_data)
 
 ~SBThreadPlan ()
 
 operator bool () const
 
bool IsValid () const
 
void Clear ()
 
lldb::StopReason GetStopReason ()
 
size_t GetStopReasonDataCount ()
 Get the number of words associated with the stop reason. More...
 
uint64_t GetStopReasonDataAtIndex (uint32_t idx)
 Get information associated with a stop reason. More...
 
SBThread GetThread () const
 
const lldb::SBThreadPlanoperator= (const lldb::SBThreadPlan &rhs)
 
bool GetDescription (lldb::SBStream &description) const
 
void SetPlanComplete (bool success)
 
bool IsPlanComplete ()
 
bool IsPlanStale ()
 
bool IsValid ()
 
bool GetStopOthers ()
 
void SetStopOthers (bool stop_others)
 
SBThreadPlan QueueThreadPlanForStepOverRange (SBAddress &start_address, lldb::addr_t range_size)
 
SBThreadPlan QueueThreadPlanForStepOverRange (SBAddress &start_address, lldb::addr_t range_size, SBError &error)
 
SBThreadPlan QueueThreadPlanForStepInRange (SBAddress &start_address, lldb::addr_t range_size)
 
SBThreadPlan QueueThreadPlanForStepInRange (SBAddress &start_address, lldb::addr_t range_size, SBError &error)
 
SBThreadPlan QueueThreadPlanForStepOut (uint32_t frame_idx_to_step_to, bool first_insn=false)
 
SBThreadPlan QueueThreadPlanForStepOut (uint32_t frame_idx_to_step_to, bool first_insn, SBError &error)
 
SBThreadPlan QueueThreadPlanForRunToAddress (SBAddress address)
 
SBThreadPlan QueueThreadPlanForRunToAddress (SBAddress address, SBError &error)
 
SBThreadPlan QueueThreadPlanForStepScripted (const char *script_class_name)
 
SBThreadPlan QueueThreadPlanForStepScripted (const char *script_class_name, SBError &error)
 
SBThreadPlan QueueThreadPlanForStepScripted (const char *script_class_name, lldb::SBStructuredData &args_data, SBError &error)
 

Private Member Functions

lldb::ThreadPlanSP GetSP () const
 
lldb_private::ThreadPlanget () const
 
void SetThreadPlan (const lldb::ThreadPlanSP &lldb_object_sp)
 

Private Attributes

lldb::ThreadPlanWP m_opaque_wp
 

Friends

class SBBreakpoint
 
class SBBreakpointLocation
 
class SBFrame
 
class SBProcess
 
class SBDebugger
 
class SBValue
 
class lldb_private::QueueImpl
 
class SBQueueItem
 

Detailed Description

Definition at line 18 of file SBThreadPlan.h.

Constructor & Destructor Documentation

◆ SBThreadPlan() [1/5]

SBThreadPlan::SBThreadPlan ( )

◆ SBThreadPlan() [2/5]

SBThreadPlan::SBThreadPlan ( const lldb::SBThreadPlan threadPlan)

Definition at line 60 of file SBThreadPlan.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBThreadPlan() [3/5]

lldb::SBThreadPlan::SBThreadPlan ( const lldb::ThreadPlanSP &  lldb_object_sp)

◆ SBThreadPlan() [4/5]

SBThreadPlan::SBThreadPlan ( lldb::SBThread thread,
const char *  class_name 
)

Definition at line 65 of file SBThreadPlan.cpp.

References lldb::SBThread::get(), LLDB_INSTRUMENT_VA, and m_opaque_wp.

◆ SBThreadPlan() [5/5]

SBThreadPlan::SBThreadPlan ( lldb::SBThread thread,
const char *  class_name,
lldb::SBStructuredData args_data 
)

◆ ~SBThreadPlan()

SBThreadPlan::~SBThreadPlan ( )
default

Member Function Documentation

◆ Clear()

void SBThreadPlan::Clear ( )

Definition at line 106 of file SBThreadPlan.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_wp.

◆ get()

lldb_private::ThreadPlan* lldb::SBThreadPlan::get ( ) const
inlineprivate

Definition at line 126 of file SBThreadPlan.h.

◆ GetDescription()

bool SBThreadPlan::GetDescription ( lldb::SBStream description) const

◆ GetSP()

lldb::ThreadPlanSP lldb::SBThreadPlan::GetSP ( ) const
inlineprivate

◆ GetStopOthers()

bool SBThreadPlan::GetStopOthers ( )

Definition at line 191 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetStopReason()

lldb::StopReason SBThreadPlan::GetStopReason ( )

Definition at line 112 of file SBThreadPlan.cpp.

References lldb::eStopReasonNone, and LLDB_INSTRUMENT_VA.

◆ GetStopReasonDataAtIndex()

uint64_t SBThreadPlan::GetStopReasonDataAtIndex ( uint32_t  idx)

Get information associated with a stop reason.

Breakpoint stop reasons will have data that consists of pairs of breakpoint IDs followed by the breakpoint location IDs (they always come in pairs).

Stop Reason Count Data Type ======================== ===== ========================================= eStopReasonNone 0 eStopReasonTrace 0 eStopReasonBreakpoint N duple: {breakpoint id, location id} eStopReasonWatchpoint 1 watchpoint id eStopReasonSignal 1 unix signal number eStopReasonException N exception data eStopReasonExec 0 eStopReasonFork 1 pid of the child process eStopReasonVFork 1 pid of the child process eStopReasonVForkDone 0 eStopReasonPlanComplete 0

Definition at line 124 of file SBThreadPlan.cpp.

References LLDB_INSTRUMENT_VA.

◆ GetStopReasonDataCount()

size_t SBThreadPlan::GetStopReasonDataCount ( )

Get the number of words associated with the stop reason.

See also GetStopReasonDataAtIndex().

Definition at line 118 of file SBThreadPlan.cpp.

References LLDB_INSTRUMENT_VA.

◆ GetThread()

SBThread SBThreadPlan::GetThread ( ) const

Definition at line 130 of file SBThreadPlan.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBThread.

◆ IsPlanComplete()

bool SBThreadPlan::IsPlanComplete ( )

Definition at line 164 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ IsPlanStale()

bool SBThreadPlan::IsPlanStale ( )

Definition at line 173 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ IsValid() [1/2]

bool lldb::SBThreadPlan::IsValid ( )

◆ IsValid() [2/2]

bool SBThreadPlan::IsValid ( ) const

Definition at line 96 of file SBThreadPlan.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator bool()

SBThreadPlan::operator bool ( ) const
explicit

Definition at line 100 of file SBThreadPlan.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator=()

const lldb::SBThreadPlan & SBThreadPlan::operator= ( const lldb::SBThreadPlan rhs)

Definition at line 86 of file SBThreadPlan.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_wp.

◆ QueueThreadPlanForRunToAddress() [1/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForRunToAddress ( SBAddress  address)

Definition at line 330 of file SBThreadPlan.cpp.

References error(), and LLDB_INSTRUMENT_VA.

◆ QueueThreadPlanForRunToAddress() [2/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForRunToAddress ( SBAddress  address,
SBError error 
)

◆ QueueThreadPlanForStepInRange() [1/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepInRange ( SBAddress start_address,
lldb::addr_t  range_size 
)

Definition at line 254 of file SBThreadPlan.cpp.

References error(), and LLDB_INSTRUMENT_VA.

◆ QueueThreadPlanForStepInRange() [2/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepInRange ( SBAddress start_address,
lldb::addr_t  range_size,
SBError error 
)

◆ QueueThreadPlanForStepOut() [1/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepOut ( uint32_t  frame_idx_to_step_to,
bool  first_insn,
SBError error 
)

◆ QueueThreadPlanForStepOut() [2/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepOut ( uint32_t  frame_idx_to_step_to,
bool  first_insn = false 
)

Definition at line 294 of file SBThreadPlan.cpp.

References error(), and LLDB_INSTRUMENT_VA.

◆ QueueThreadPlanForStepOverRange() [1/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepOverRange ( SBAddress start_address,
lldb::addr_t  range_size 
)

Definition at line 215 of file SBThreadPlan.cpp.

References error(), and LLDB_INSTRUMENT_VA.

◆ QueueThreadPlanForStepOverRange() [2/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepOverRange ( SBAddress start_address,
lldb::addr_t  range_size,
SBError error 
)

◆ QueueThreadPlanForStepScripted() [1/3]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepScripted ( const char *  script_class_name)

Definition at line 363 of file SBThreadPlan.cpp.

References error(), and LLDB_INSTRUMENT_VA.

◆ QueueThreadPlanForStepScripted() [2/3]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepScripted ( const char *  script_class_name,
lldb::SBStructuredData args_data,
SBError error 
)

◆ QueueThreadPlanForStepScripted() [3/3]

SBThreadPlan SBThreadPlan::QueueThreadPlanForStepScripted ( const char *  script_class_name,
SBError error 
)

◆ SetPlanComplete()

void SBThreadPlan::SetPlanComplete ( bool  success)

Definition at line 156 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetStopOthers()

void SBThreadPlan::SetStopOthers ( bool  stop_others)

Definition at line 200 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetThreadPlan()

void SBThreadPlan::SetThreadPlan ( const lldb::ThreadPlanSP &  lldb_object_sp)
private

Definition at line 152 of file SBThreadPlan.cpp.

References m_opaque_wp.

Friends And Related Function Documentation

◆ lldb_private::QueueImpl

friend class lldb_private::QueueImpl
friend

Definition at line 122 of file SBThreadPlan.h.

◆ SBBreakpoint

friend class SBBreakpoint
friend

Definition at line 116 of file SBThreadPlan.h.

◆ SBBreakpointLocation

friend class SBBreakpointLocation
friend

Definition at line 117 of file SBThreadPlan.h.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 120 of file SBThreadPlan.h.

◆ SBFrame

friend class SBFrame
friend

Definition at line 118 of file SBThreadPlan.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 119 of file SBThreadPlan.h.

◆ SBQueueItem

friend class SBQueueItem
friend

Definition at line 123 of file SBThreadPlan.h.

◆ SBValue

friend class SBValue
friend

Definition at line 121 of file SBThreadPlan.h.

Member Data Documentation

◆ m_opaque_wp

lldb::ThreadPlanWP lldb::SBThreadPlan::m_opaque_wp
private

Definition at line 129 of file SBThreadPlan.h.

Referenced by Clear(), operator=(), SBThreadPlan(), and SetThreadPlan().


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