LLDB mainline
|
#include <SBCompileUnit.h>
Public Member Functions | |
SBCompileUnit () | |
SBCompileUnit (const lldb::SBCompileUnit &rhs) | |
~SBCompileUnit () | |
const lldb::SBCompileUnit & | operator= (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::CompileUnit * | operator-> () const |
const lldb_private::CompileUnit & | operator* () const |
lldb_private::CompileUnit * | get () |
void | reset (lldb_private::CompileUnit *lldb_object_ptr) |
Private Attributes | |
lldb_private::CompileUnit * | m_opaque_ptr = nullptr |
Friends | |
class | SBAddress |
class | SBFrame |
class | SBSymbolContext |
class | SBModule |
Definition at line 17 of file SBCompileUnit.h.
SBCompileUnit::SBCompileUnit | ( | ) |
Definition at line 24 of file SBCompileUnit.cpp.
References LLDB_INSTRUMENT_VA.
SBCompileUnit::SBCompileUnit | ( | const lldb::SBCompileUnit & | rhs | ) |
Definition at line 29 of file SBCompileUnit.cpp.
References LLDB_INSTRUMENT_VA.
SBCompileUnit::~SBCompileUnit | ( | ) |
Definition at line 41 of file SBCompileUnit.cpp.
References m_opaque_ptr.
|
private |
Definition at line 26 of file SBCompileUnit.cpp.
uint32_t SBCompileUnit::FindLineEntryIndex | ( | lldb::SBLineEntry & | line_entry, |
bool | exact = false |
||
) | const |
Definition at line 80 of file SBCompileUnit.cpp.
References lldb_private::CompileUnit::FindLineEntry(), lldb::SBFileSpec::get(), lldb::SBLineEntry::GetFileSpec(), lldb::SBLineEntry::GetLine(), lldb::SBLineEntry::IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb::SBLineEntry::ref(), and UINT32_MAX.
Referenced by FindLineEntryIndex().
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.
uint32_t SBCompileUnit::FindLineEntryIndex | ( | uint32_t | start_idx, |
uint32_t | line, | ||
lldb::SBFileSpec * | inline_file_spec, | ||
bool | exact | ||
) | const |
Definition at line 102 of file SBCompileUnit.cpp.
References lldb_private::CompileUnit::FindLineEntry(), lldb_private::CompileUnit::GetPrimaryFile(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and UINT32_MAX.
uint32_t SBCompileUnit::FindSupportFileIndex | ( | uint32_t | start_idx, |
const SBFileSpec & | sb_file, | ||
bool | full | ||
) |
Definition at line 168 of file SBCompileUnit.cpp.
References lldb_private::SupportFileList::FindFileIndex(), lldb_private::CompileUnit::GetSupportFiles(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBFileSpec::ref().
|
private |
Definition at line 218 of file SBCompileUnit.cpp.
References m_opaque_ptr.
Referenced by lldb::SBSymbolContext::SetCompileUnit().
bool SBCompileUnit::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 224 of file SBCompileUnit.cpp.
References lldb_private::CompileUnit::Dump(), LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb_private::Stream::PutCString(), and lldb::SBStream::ref().
SBFileSpec SBCompileUnit::GetFileSpec | ( | ) | const |
Definition at line 43 of file SBCompileUnit.cpp.
References lldb_private::CompileUnit::GetPrimaryFile(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBFileSpec::SetFileSpec().
lldb::LanguageType SBCompileUnit::GetLanguage | ( | ) |
Definition at line 180 of file SBCompileUnit.cpp.
References lldb::eLanguageTypeUnknown, lldb_private::CompileUnit::GetLanguage(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
SBLineEntry SBCompileUnit::GetLineEntryAtIndex | ( | uint32_t | idx | ) | const |
Definition at line 64 of file SBCompileUnit.cpp.
References lldb_private::LineTable::GetLineEntryAtIndex(), lldb_private::CompileUnit::GetLineTable(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBLineEntry::SetLineEntry().
uint32_t SBCompileUnit::GetNumLineEntries | ( | ) | const |
Definition at line 52 of file SBCompileUnit.cpp.
References lldb_private::CompileUnit::GetLineTable(), lldb_private::LineTable::GetSize(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
uint32_t SBCompileUnit::GetNumSupportFiles | ( | ) | const |
Definition at line 124 of file SBCompileUnit.cpp.
References lldb_private::SupportFileList::GetSize(), lldb_private::CompileUnit::GetSupportFiles(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
SBFileSpec SBCompileUnit::GetSupportFileAtIndex | ( | uint32_t | idx | ) | const |
Definition at line 156 of file SBCompileUnit.cpp.
References lldb_private::SupportFileList::GetFileSpecAtIndex(), lldb_private::CompileUnit::GetSupportFiles(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBFileSpec::SetFileSpec().
lldb::SBTypeList SBCompileUnit::GetTypes | ( | uint32_t | type_mask = lldb::eTypeClassAny | ) |
Get all types matching type_mask from debug info in this compile unit.
[in] | type_mask | A 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. |
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.
bool SBCompileUnit::IsValid | ( | ) | const |
Definition at line 188 of file SBCompileUnit.cpp.
References LLDB_INSTRUMENT_VA.
|
explicit |
Definition at line 192 of file SBCompileUnit.cpp.
References LLDB_INSTRUMENT_VA.
bool SBCompileUnit::operator!= | ( | const lldb::SBCompileUnit & | rhs | ) | const |
Definition at line 204 of file SBCompileUnit.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
private |
Definition at line 214 of file SBCompileUnit.cpp.
References m_opaque_ptr.
|
private |
Definition at line 210 of file SBCompileUnit.cpp.
References m_opaque_ptr.
const SBCompileUnit & SBCompileUnit::operator= | ( | const lldb::SBCompileUnit & | rhs | ) |
Definition at line 34 of file SBCompileUnit.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCompileUnit::operator== | ( | const lldb::SBCompileUnit & | rhs | ) | const |
Definition at line 198 of file SBCompileUnit.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
private |
Definition at line 220 of file SBCompileUnit.cpp.
References m_opaque_ptr.
Referenced by lldb::SBAddress::GetCompileUnit(), lldb::SBFrame::GetCompileUnit(), and lldb::SBModule::GetCompileUnitAtIndex().
|
friend |
Definition at line 78 of file SBCompileUnit.h.
|
friend |
Definition at line 79 of file SBCompileUnit.h.
|
friend |
Definition at line 81 of file SBCompileUnit.h.
|
friend |
Definition at line 80 of file SBCompileUnit.h.
|
private |
Definition at line 93 of file SBCompileUnit.h.
Referenced by FindLineEntryIndex(), FindSupportFileIndex(), get(), GetDescription(), GetFileSpec(), GetLanguage(), GetLineEntryAtIndex(), GetNumLineEntries(), GetNumSupportFiles(), GetSupportFileAtIndex(), GetTypes(), operator!=(), operator*(), operator->(), operator=(), operator==(), reset(), and ~SBCompileUnit().