LLDB mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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 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 21 of file SBBlock.h.

Constructor & Destructor Documentation

◆ SBBlock() [1/3]

SBBlock::SBBlock ( )

Definition at line 29 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBBlock() [2/3]

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

Definition at line 34 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBBlock()

SBBlock::~SBBlock ( )

Definition at line 45 of file SBBlock.cpp.

References m_opaque_ptr.

◆ SBBlock() [3/3]

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

Definition at line 31 of file SBBlock.cpp.

Member Function Documentation

◆ AppendVariables()

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

Definition at line 115 of file SBBlock.cpp.

References lldb_private::Block::AppendVariables(), IsValid(), and m_opaque_ptr.

◆ 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 133 of file SBBlock.cpp.

References lldb_private::Block::GetContainingInlinedBlock(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ GetDescription()

bool SBBlock::GetDescription ( lldb::SBStream description)

◆ GetFirstChild()

SBBlock SBBlock::GetFirstChild ( )

◆ GetInlinedCallSiteColumn()

uint32_t SBBlock::GetInlinedCallSiteColumn ( ) const

◆ GetInlinedCallSiteFile()

SBFileSpec SBBlock::GetInlinedCallSiteFile ( ) const

◆ GetInlinedCallSiteLine()

uint32_t SBBlock::GetInlinedCallSiteLine ( ) const

◆ GetInlinedName()

const char * SBBlock::GetInlinedName ( ) const

◆ GetNumRanges()

uint32_t SBBlock::GetNumRanges ( )

◆ GetParent()

SBBlock SBBlock::GetParent ( )

Definition at line 124 of file SBBlock.cpp.

References lldb_private::Block::GetParent(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ GetPtr()

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

Definition at line 160 of file SBBlock.cpp.

References m_opaque_ptr.

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

◆ GetRangeEndAddress()

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

◆ 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 142 of file SBBlock.cpp.

References lldb_private::Block::GetSibling(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ GetVariables() [1/2]

lldb::SBValueList SBBlock::GetVariables ( lldb::SBFrame frame,
bool  arguments,
bool  locals,
bool  statics,
lldb::DynamicValueType  use_dynamic 
)

◆ GetVariables() [2/2]

lldb::SBValueList SBBlock::GetVariables ( lldb::SBTarget target,
bool  arguments,
bool  locals,
bool  statics 
)

◆ IsInlined()

bool SBBlock::IsInlined ( ) const

◆ IsValid()

bool SBBlock::IsValid ( ) const

Definition at line 47 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by AppendVariables().

◆ operator bool()

SBBlock::operator bool ( ) const
explicit

Definition at line 51 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator=()

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

Definition at line 38 of file SBBlock.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ SetPtr()

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

Friends And Related Function Documentation

◆ SBAddress

friend class SBAddress
friend

Definition at line 80 of file SBBlock.h.

◆ SBFrame

friend class SBFrame
friend

Definition at line 81 of file SBBlock.h.

◆ SBFunction

friend class SBFunction
friend

Definition at line 82 of file SBBlock.h.

◆ SBSymbolContext

friend class SBSymbolContext
friend

Definition at line 83 of file SBBlock.h.

Member Data Documentation

◆ m_opaque_ptr

lldb_private::Block* lldb::SBBlock::m_opaque_ptr = nullptr
private

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