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 61 of file SBThreadPlan.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ 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 66 of file SBThreadPlan.cpp.

References lldb::SBThread::get(), LLDB_RECORD_CONSTRUCTOR, 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 111 of file SBThreadPlan.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, 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 199 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetStopReason()

lldb::StopReason SBThreadPlan::GetStopReason ( )

Definition at line 117 of file SBThreadPlan.cpp.

References lldb::eStopReasonNone, and LLDB_RECORD_METHOD_NO_ARGS.

◆ 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 129 of file SBThreadPlan.cpp.

References LLDB_RECORD_METHOD.

◆ GetStopReasonDataCount()

size_t SBThreadPlan::GetStopReasonDataCount ( )

Get the number of words associated with the stop reason.

See also GetStopReasonDataAtIndex().

Definition at line 123 of file SBThreadPlan.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

◆ GetThread()

SBThread SBThreadPlan::GetThread ( ) const

◆ IsPlanComplete()

bool SBThreadPlan::IsPlanComplete ( )

Definition at line 172 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ IsPlanStale()

bool SBThreadPlan::IsPlanStale ( )

Definition at line 181 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ IsValid() [1/2]

bool lldb::SBThreadPlan::IsValid ( )

◆ IsValid() [2/2]

bool SBThreadPlan::IsValid ( ) const

Definition at line 101 of file SBThreadPlan.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator bool()

SBThreadPlan::operator bool ( ) const
explicit

Definition at line 105 of file SBThreadPlan.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator=()

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

Definition at line 90 of file SBThreadPlan.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and m_opaque_wp.

◆ QueueThreadPlanForRunToAddress() [1/2]

SBThreadPlan SBThreadPlan::QueueThreadPlanForRunToAddress ( SBAddress  address)

Definition at line 356 of file SBThreadPlan.cpp.

References error(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

Referenced by QueueThreadPlanForRunToAddress().

◆ 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 268 of file SBThreadPlan.cpp.

References error(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

Referenced by QueueThreadPlanForStepInRange().

◆ 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 314 of file SBThreadPlan.cpp.

References error(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

Referenced by QueueThreadPlanForStepOut().

◆ QueueThreadPlanForStepOverRange() [1/2]

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

Definition at line 223 of file SBThreadPlan.cpp.

References error(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

Referenced by QueueThreadPlanForStepOverRange().

◆ 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 393 of file SBThreadPlan.cpp.

References error(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

Referenced by QueueThreadPlanForStepScripted().

◆ 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 164 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetStopOthers()

void SBThreadPlan::SetStopOthers ( bool  stop_others)

Definition at line 208 of file SBThreadPlan.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetThreadPlan()

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

Definition at line 160 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: