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

#include <SBCompileUnit.h>

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

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 (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. More...
 
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_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBCompileUnit() [2/3]

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

Definition at line 31 of file SBCompileUnit.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBCompileUnit()

SBCompileUnit::~SBCompileUnit ( )

Definition at line 45 of file SBCompileUnit.cpp.

References m_opaque_ptr.

◆ SBCompileUnit() [3/3]

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

Definition at line 28 of file SBCompileUnit.cpp.

Member Function Documentation

◆ FindLineEntryIndex() [1/2]

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

Definition at line 86 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD_CONST.

Referenced by FindLineEntryIndex().

◆ FindLineEntryIndex() [2/2]

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 221 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 129 of file SBCompileUnit.cpp.

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

◆ IsValid()

bool SBCompileUnit::IsValid ( ) const

Definition at line 189 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator bool()

SBCompileUnit::operator bool ( ) const
explicit

Definition at line 193 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator!=()

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

Definition at line 206 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD_CONST, and m_opaque_ptr.

◆ operator*()

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

Definition at line 217 of file SBCompileUnit.cpp.

References m_opaque_ptr.

◆ operator->()

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

Definition at line 213 of file SBCompileUnit.cpp.

References m_opaque_ptr.

◆ operator=()

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

Definition at line 36 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and m_opaque_ptr.

◆ operator==()

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

Definition at line 199 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD_CONST, 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 75 of file SBCompileUnit.h.

◆ SBFrame

friend class SBFrame
friend

Definition at line 76 of file SBCompileUnit.h.

◆ SBModule

friend class SBModule
friend

Definition at line 78 of file SBCompileUnit.h.

◆ SBSymbolContext

friend class SBSymbolContext
friend

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