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

#include <SBCompileUnit.h>

Public Member Functions

 SBCompileUnit ()
 
 SBCompileUnit (const lldb::SBCompileUnit &rhs)
 
 ~SBCompileUnit ()
 
const lldb::SBCompileUnitoperator= (const lldb::SBCompileUnit &rhs)
 
 operator bool () const
 
bool IsValid () const
 
lldb::SBFileSpec GetFileSpec () const
 
uint32_t GetNumLineEntries () const
 
lldb::SBLineEntry GetLineEntryAtIndex (uint32_t idx) const
 
uint32_t FindLineEntryIndex (lldb::SBLineEntry &line_entry, bool exact=false) const
 
uint32_t FindLineEntryIndex (uint32_t start_idx, uint32_t line, lldb::SBFileSpec *inline_file_spec) const
 
uint32_t FindLineEntryIndex (uint32_t start_idx, uint32_t line, lldb::SBFileSpec *inline_file_spec, bool exact) const
 
SBFileSpec GetSupportFileAtIndex (uint32_t idx) const
 
uint32_t GetNumSupportFiles () const
 
uint32_t FindSupportFileIndex (uint32_t start_idx, const SBFileSpec &sb_file, bool full)
 
lldb::SBTypeList GetTypes (uint32_t type_mask=lldb::eTypeClassAny)
 Get all types matching type_mask from debug info in this compile unit.
 
lldb::LanguageType GetLanguage ()
 
bool operator== (const lldb::SBCompileUnit &rhs) const
 
bool operator!= (const lldb::SBCompileUnit &rhs) const
 
bool GetDescription (lldb::SBStream &description)
 

Private Member Functions

 SBCompileUnit (lldb_private::CompileUnit *lldb_object_ptr)
 
const lldb_private::CompileUnitoperator-> () const
 
const lldb_private::CompileUnitoperator* () const
 
lldb_private::CompileUnitget ()
 
void reset (lldb_private::CompileUnit *lldb_object_ptr)
 

Private Attributes

lldb_private::CompileUnitm_opaque_ptr = nullptr
 

Friends

class SBAddress
 
class SBFrame
 
class SBSymbolContext
 
class SBModule
 

Detailed Description

Definition at line 17 of file SBCompileUnit.h.

Constructor & Destructor Documentation

◆ SBCompileUnit() [1/3]

SBCompileUnit::SBCompileUnit ( )

Definition at line 24 of file SBCompileUnit.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBCompileUnit() [2/3]

SBCompileUnit::SBCompileUnit ( const lldb::SBCompileUnit rhs)

Definition at line 29 of file SBCompileUnit.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBCompileUnit()

SBCompileUnit::~SBCompileUnit ( )

Definition at line 41 of file SBCompileUnit.cpp.

References m_opaque_ptr.

◆ SBCompileUnit() [3/3]

SBCompileUnit::SBCompileUnit ( lldb_private::CompileUnit lldb_object_ptr)
private

Definition at line 26 of file SBCompileUnit.cpp.

Member Function Documentation

◆ FindLineEntryIndex() [1/3]

uint32_t SBCompileUnit::FindLineEntryIndex ( lldb::SBLineEntry line_entry,
bool  exact = false 
) const

◆ FindLineEntryIndex() [2/3]

uint32_t SBCompileUnit::FindLineEntryIndex ( uint32_t  start_idx,
uint32_t  line,
lldb::SBFileSpec inline_file_spec 
) const

Definition at line 94 of file SBCompileUnit.cpp.

References FindLineEntryIndex(), and LLDB_INSTRUMENT_VA.

◆ FindLineEntryIndex() [3/3]

uint32_t SBCompileUnit::FindLineEntryIndex ( uint32_t  start_idx,
uint32_t  line,
lldb::SBFileSpec inline_file_spec,
bool  exact 
) const

◆ FindSupportFileIndex()

uint32_t SBCompileUnit::FindSupportFileIndex ( uint32_t  start_idx,
const SBFileSpec sb_file,
bool  full 
)

◆ get()

lldb_private::CompileUnit * SBCompileUnit::get ( )
private

Definition at line 218 of file SBCompileUnit.cpp.

References m_opaque_ptr.

Referenced by lldb::SBSymbolContext::SetCompileUnit().

◆ GetDescription()

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

◆ GetFileSpec()

SBFileSpec SBCompileUnit::GetFileSpec ( ) const

◆ GetLanguage()

lldb::LanguageType SBCompileUnit::GetLanguage ( )

◆ GetLineEntryAtIndex()

SBLineEntry SBCompileUnit::GetLineEntryAtIndex ( uint32_t  idx) const

◆ GetNumLineEntries()

uint32_t SBCompileUnit::GetNumLineEntries ( ) const

◆ GetNumSupportFiles()

uint32_t SBCompileUnit::GetNumSupportFiles ( ) const

◆ GetSupportFileAtIndex()

SBFileSpec SBCompileUnit::GetSupportFileAtIndex ( uint32_t  idx) const

◆ GetTypes()

lldb::SBTypeList SBCompileUnit::GetTypes ( uint32_t  type_mask = lldb::eTypeClassAny)

Get all types matching type_mask from debug info in this compile unit.

Parameters
[in]type_maskA bitfield that consists of one or more bits logically OR'ed together from the lldb::TypeClass enumeration. This allows you to request only structure types, or only class, struct and union types. Passing in lldb::eTypeClassAny will return all types found in the debug information for this compile unit.
Returns
A list of types in this compile unit that match type_mask

Definition at line 133 of file SBCompileUnit.cpp.

References lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFile::GetTypes(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBTypeList::m_opaque_up.

◆ IsValid()

bool SBCompileUnit::IsValid ( ) const

Definition at line 188 of file SBCompileUnit.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator bool()

SBCompileUnit::operator bool ( ) const
explicit

Definition at line 192 of file SBCompileUnit.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator!=()

bool SBCompileUnit::operator!= ( const lldb::SBCompileUnit rhs) const

Definition at line 204 of file SBCompileUnit.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ operator*()

const lldb_private::CompileUnit & SBCompileUnit::operator* ( ) const
private

Definition at line 214 of file SBCompileUnit.cpp.

References m_opaque_ptr.

◆ operator->()

const lldb_private::CompileUnit * SBCompileUnit::operator-> ( ) const
private

Definition at line 210 of file SBCompileUnit.cpp.

References m_opaque_ptr.

◆ operator=()

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

Definition at line 34 of file SBCompileUnit.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ operator==()

bool SBCompileUnit::operator== ( const lldb::SBCompileUnit rhs) const

Definition at line 198 of file SBCompileUnit.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_ptr.

◆ reset()

void SBCompileUnit::reset ( lldb_private::CompileUnit lldb_object_ptr)
private

Friends And Related Function Documentation

◆ SBAddress

friend class SBAddress
friend

Definition at line 78 of file SBCompileUnit.h.

◆ SBFrame

friend class SBFrame
friend

Definition at line 79 of file SBCompileUnit.h.

◆ SBModule

friend class SBModule
friend

Definition at line 81 of file SBCompileUnit.h.

◆ SBSymbolContext

friend class SBSymbolContext
friend

Definition at line 80 of file SBCompileUnit.h.

Member Data Documentation

◆ m_opaque_ptr

lldb_private::CompileUnit* lldb::SBCompileUnit::m_opaque_ptr = nullptr
private

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