LLDB mainline
lldb::SBBlock Class Reference

#include <SBBlock.h>

Public Member Functions

 SBBlock ()
 SBBlock (const lldb::SBBlock &rhs)
 ~SBBlock ()
const lldb::SBBlockoperator= (const lldb::SBBlock &rhs)
bool IsInlined () const
 operator bool () const
bool operator== (const lldb::SBBlock &rhs) const
bool operator!= (const lldb::SBBlock &rhs) const
bool IsValid () const
const char * GetInlinedName () const
lldb::SBFileSpec GetInlinedCallSiteFile () const
uint32_t GetInlinedCallSiteLine () const
uint32_t GetInlinedCallSiteColumn () const
lldb::SBBlock GetParent ()
lldb::SBBlock GetSibling ()
lldb::SBBlock GetFirstChild ()
uint32_t GetNumRanges ()
lldb::SBAddress GetRangeStartAddress (uint32_t idx)
lldb::SBAddress GetRangeEndAddress (uint32_t idx)
lldb::SBAddressRangeList GetRanges ()
uint32_t GetRangeIndexForBlockAddress (lldb::SBAddress block_addr)
lldb::SBValueList GetVariables (lldb::SBFrame &frame, bool arguments, bool locals, bool statics, lldb::DynamicValueType use_dynamic)
lldb::SBValueList GetVariables (lldb::SBTarget &target, bool arguments, bool locals, bool statics)
lldb::SBBlock GetContainingInlinedBlock ()
 Get the inlined block that contains this block.
bool GetDescription (lldb::SBStream &description)

Private Member Functions

lldb_private::BlockGetPtr ()
void SetPtr (lldb_private::Block *lldb_object_ptr)
 SBBlock (lldb_private::Block *lldb_object_ptr)
void AppendVariables (bool can_create, bool get_parent_variables, lldb_private::VariableList *var_list)

Private Attributes

lldb_private::Blockm_opaque_ptr = nullptr

Friends

class SBAddress
class SBFrame
class SBFunction
class SBSymbolContext

Detailed Description

Definition at line 22 of file SBBlock.h.

Constructor & Destructor Documentation

◆ SBBlock() [1/3]

◆ SBBlock() [2/3]

SBBlock::SBBlock ( const lldb::SBBlock & rhs)

Definition at line 33 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBBlock().

◆ ~SBBlock()

SBBlock::~SBBlock ( )

Definition at line 44 of file SBBlock.cpp.

References m_opaque_ptr.

◆ SBBlock() [3/3]

SBBlock::SBBlock ( lldb_private::Block * lldb_object_ptr)
private

Definition at line 30 of file SBBlock.cpp.

References m_opaque_ptr.

Member Function Documentation

◆ AppendVariables()

void SBBlock::AppendVariables ( bool can_create,
bool get_parent_variables,
lldb_private::VariableList * var_list )
private

Definition at line 130 of file SBBlock.cpp.

References IsValid(), and m_opaque_ptr.

Referenced by SBSymbolContext.

◆ GetContainingInlinedBlock()

lldb::SBBlock SBBlock::GetContainingInlinedBlock ( )

Get the inlined block that contains this block.

Returns
If this block is inlined, it will return this block, else parent blocks will be searched to see if any contain this block and are themselves inlined. An invalid SBBlock will be returned if this block nor any parent blocks are inlined function blocks.

Definition at line 149 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBBlock().

◆ GetDescription()

◆ GetFirstChild()

SBBlock SBBlock::GetFirstChild ( )

Definition at line 167 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBBlock().

◆ GetInlinedCallSiteColumn()

uint32_t SBBlock::GetInlinedCallSiteColumn ( ) const

◆ GetInlinedCallSiteFile()

◆ GetInlinedCallSiteLine()

uint32_t SBBlock::GetInlinedCallSiteLine ( ) const

◆ GetInlinedName()

const char * SBBlock::GetInlinedName ( ) const

◆ GetNumRanges()

uint32_t SBBlock::GetNumRanges ( )

Definition at line 203 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ GetParent()

SBBlock SBBlock::GetParent ( )

Definition at line 140 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBBlock().

◆ GetPtr()

lldb_private::Block * SBBlock::GetPtr ( )
private

Definition at line 176 of file SBBlock.cpp.

References m_opaque_ptr.

Referenced by GetVariables(), GetVariables(), SBSymbolContext, and lldb::SBSymbolContext::SetBlock().

◆ GetRangeEndAddress()

◆ GetRangeIndexForBlockAddress()

uint32_t SBBlock::GetRangeIndexForBlockAddress ( lldb::SBAddress block_addr)

◆ GetRanges()

lldb::SBAddressRangeList SBBlock::GetRanges ( )

◆ GetRangeStartAddress()

lldb::SBAddress SBBlock::GetRangeStartAddress ( uint32_t idx)

◆ GetSibling()

SBBlock SBBlock::GetSibling ( )

Definition at line 158 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBBlock().

◆ GetVariables() [1/2]

◆ GetVariables() [2/2]

◆ IsInlined()

bool SBBlock::IsInlined ( ) const

Definition at line 72 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

Referenced by GetDescription().

◆ IsValid()

bool SBBlock::IsValid ( ) const

Definition at line 46 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by AppendVariables().

◆ operator bool()

SBBlock::operator bool ( ) const
explicit

Definition at line 50 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ operator!=()

bool SBBlock::operator!= ( const lldb::SBBlock & rhs) const

Definition at line 66 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, and SBBlock().

◆ operator=()

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

Definition at line 37 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBBlock().

◆ operator==()

bool SBBlock::operator== ( const lldb::SBBlock & rhs) const

◆ SetPtr()

void SBBlock::SetPtr ( lldb_private::Block * lldb_object_ptr)
private

Definition at line 178 of file SBBlock.cpp.

References m_opaque_ptr.

Referenced by lldb::SBAddress::GetBlock(), lldb::SBFunction::GetBlock(), and SBSymbolContext.

◆ SBAddress

friend class SBAddress
friend

Definition at line 85 of file SBBlock.h.

References SBAddress.

Referenced by SBAddress.

◆ SBFrame

friend class SBFrame
friend

Definition at line 86 of file SBBlock.h.

References SBFrame.

Referenced by SBFrame.

◆ SBFunction

friend class SBFunction
friend

Definition at line 87 of file SBBlock.h.

References SBFunction.

Referenced by SBFunction.

◆ SBSymbolContext

friend class SBSymbolContext
friend

Definition at line 88 of file SBBlock.h.

References AppendVariables(), GetPtr(), SBBlock(), SBSymbolContext, and SetPtr().

Referenced by SBSymbolContext.

Member Data Documentation

◆ m_opaque_ptr


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