LLDB  mainline
Public Member Functions | 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 (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)
 

Friends

class SBAddress
 
class SBFrame
 
class SBSymbolContext
 
class SBModule
 

Detailed Description

Definition at line 17 of file SBCompileUnit.h.

Constructor & Destructor Documentation

◆ SBCompileUnit() [1/2]

SBCompileUnit::SBCompileUnit ( )

Definition at line 23 of file SBCompileUnit.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBCompileUnit() [2/2]

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

Definition at line 30 of file SBCompileUnit.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBCompileUnit()

SBCompileUnit::~SBCompileUnit ( )

Definition at line 44 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

◆ 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 
)

◆ 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 128 of file SBCompileUnit.cpp.

References lldb_private::ModuleChild::GetModule(), lldb_private::SymbolVendor::GetTypes(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

Referenced by lldb_private::repro::RegisterMethods< SBCompileUnit >().

◆ IsValid()

bool SBCompileUnit::IsValid ( ) const

◆ 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.

◆ operator=()

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

Definition at line 35 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

◆ operator==()

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

Definition at line 199 of file SBCompileUnit.cpp.

References LLDB_RECORD_METHOD_CONST.

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.


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