LLDB mainline
|
#include <SBSymbol.h>
Public Member Functions | |
SBSymbol () | |
~SBSymbol () | |
SBSymbol (const lldb::SBSymbol &rhs) | |
const lldb::SBSymbol & | operator= (const lldb::SBSymbol &rhs) |
operator bool () const | |
bool | IsValid () const |
const char * | GetName () const |
const char * | GetDisplayName () const |
const char * | GetMangledName () const |
const char * | GetBaseName () const |
lldb::SBInstructionList | GetInstructions (lldb::SBTarget target) |
lldb::SBInstructionList | GetInstructions (lldb::SBTarget target, const char *flavor_string) |
SBAddress | GetStartAddress () |
Get the start address of this symbol. | |
SBAddress | GetEndAddress () |
Get the end address of this symbol. | |
uint64_t | GetValue () |
Get the raw value of a symbol. | |
uint64_t | GetSize () |
Get the size of the symbol. | |
uint32_t | GetPrologueByteSize () |
SymbolType | GetType () |
uint32_t | GetID () |
Get the ID of this symbol, usually the original symbol table index. | |
bool | operator== (const lldb::SBSymbol &rhs) const |
bool | operator!= (const lldb::SBSymbol &rhs) const |
bool | GetDescription (lldb::SBStream &description) |
bool | IsExternal () |
bool | IsSynthetic () |
bool | IsDebug () |
Returns true if the symbol is a debug symbol. |
Static Public Member Functions | |
static const char * | GetTypeAsString (lldb::SymbolType symbol_type) |
Get the string representation of a symbol type. | |
static lldb::SymbolType | GetTypeFromString (const char *str) |
Get the symbol type from a string representation. |
Protected Member Functions | |
lldb_private::Symbol * | get () |
void | reset (lldb_private::Symbol *) |
Private Member Functions | |
SBSymbol (lldb_private::Symbol *lldb_object_ptr) | |
void | SetSymbol (lldb_private::Symbol *lldb_object_ptr) |
Private Attributes | |
lldb_private::Symbol * | m_opaque_ptr = nullptr |
Friends | |
class | SBAddress |
class | SBFrame |
class | SBModule |
class | SBSymbolContext |
Definition at line 19 of file SBSymbol.h.
SBSymbol::SBSymbol | ( | ) |
Definition at line 21 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by operator!=(), operator=(), operator==(), and SBSymbolContext.
SBSymbol::~SBSymbol | ( | ) |
Definition at line 37 of file SBSymbol.cpp.
References m_opaque_ptr.
SBSymbol::SBSymbol | ( | const lldb::SBSymbol & | rhs | ) |
Definition at line 26 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
private |
Definition at line 23 of file SBSymbol.cpp.
References m_opaque_ptr.
|
protected |
Definition at line 147 of file SBSymbol.cpp.
References m_opaque_ptr.
Referenced by lldb::SBSymbolContext::SetSymbol().
const char * SBSymbol::GetBaseName | ( | ) | const |
Definition at line 82 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBSymbol::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 103 of file SBSymbol.cpp.
References lldb::eDescriptionLevelFull, LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb_private::Stream::PutCString(), and lldb::SBStream::ref().
const char * SBSymbol::GetDisplayName | ( | ) | const |
Definition at line 63 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
SBAddress SBSymbol::GetEndAddress | ( | ) |
Get the end address of this symbol.
Definition at line 161 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, SBAddress, lldb::SBAddress::SetAddress(), and lldb_private::Address::Slide().
uint32_t SBSymbol::GetID | ( | ) |
Get the ID of this symbol, usually the original symbol table index.
Definition at line 205 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
SBInstructionList SBSymbol::GetInstructions | ( | lldb::SBTarget | target | ) |
Definition at line 116 of file SBSymbol.cpp.
References GetInstructions(), and LLDB_INSTRUMENT_VA.
Referenced by GetInstructions().
SBInstructionList SBSymbol::GetInstructions | ( | lldb::SBTarget | target, |
const char * | flavor_string ) |
Definition at line 122 of file SBSymbol.cpp.
References lldb_private::Disassembler::DisassembleRange(), lldb_private::Address::GetModule(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBInstructionList::SetDisassembler().
const char * SBSymbol::GetMangledName | ( | ) | const |
Definition at line 73 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
const char * SBSymbol::GetName | ( | ) | const |
Definition at line 53 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
uint32_t SBSymbol::GetPrologueByteSize | ( | ) |
Definition at line 189 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
uint64_t SBSymbol::GetSize | ( | ) |
Get the size of the symbol.
This accessor allows direct access to the symbol's size from the symbol table regardless of what the value is (address or integer value).
Definition at line 182 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
SBAddress SBSymbol::GetStartAddress | ( | ) |
Get the start address of this symbol.
Definition at line 151 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, SBAddress, and lldb::SBAddress::SetAddress().
SymbolType SBSymbol::GetType | ( | ) |
Definition at line 197 of file SBSymbol.cpp.
References lldb::eSymbolTypeInvalid, LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
static |
Get the string representation of a symbol type.
Definition at line 237 of file SBSymbol.cpp.
References lldb_private::Symbol::GetTypeAsString(), and LLDB_INSTRUMENT_VA.
|
static |
Get the symbol type from a string representation.
Definition at line 243 of file SBSymbol.cpp.
References lldb_private::Symbol::GetTypeFromString(), and LLDB_INSTRUMENT_VA.
uint64_t SBSymbol::GetValue | ( | ) |
Get the raw value of a symbol.
This accessor allows direct access to the symbol's value from the symbol table regardless of what the value is. The value can be a file address or it can be an integer value that depends on what the symbol's type is. Some symbol values are not addresses, but absolute values or integer values that can be mean different things. The GetStartAddress() accessor will only return a valid SBAddress if the symbol's value is an address, so this accessor provides a way to access the symbol's value when the value is not an address.
Definition at line 175 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBSymbol::IsDebug | ( | ) |
Returns true if the symbol is a debug symbol.
Definition at line 229 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBSymbol::IsExternal | ( | ) |
Definition at line 213 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBSymbol::IsSynthetic | ( | ) |
Definition at line 221 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBSymbol::IsValid | ( | ) | const |
Definition at line 43 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA.
|
explicit |
Definition at line 47 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBSymbol::operator!= | ( | const lldb::SBSymbol & | rhs | ) | const |
Definition at line 97 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBSymbol().
const SBSymbol & SBSymbol::operator= | ( | const lldb::SBSymbol & | rhs | ) |
Definition at line 30 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBSymbol().
bool SBSymbol::operator== | ( | const lldb::SBSymbol & | rhs | ) | const |
Definition at line 91 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBSymbol().
|
protected |
Definition at line 149 of file SBSymbol.cpp.
References m_opaque_ptr.
Referenced by lldb::SBAddress::GetSymbol().
|
private |
Definition at line 39 of file SBSymbol.cpp.
References m_opaque_ptr.
Referenced by lldb::SBModule::FindSymbol(), lldb::SBModule::GetSymbolAtIndex(), and SBSymbolContext.
|
friend |
Definition at line 125 of file SBSymbol.h.
References SBAddress.
Referenced by GetEndAddress(), GetStartAddress(), and SBAddress.
|
friend |
|
friend |
|
friend |
Definition at line 128 of file SBSymbol.h.
References SBSymbol(), SBSymbolContext, and SetSymbol().
Referenced by SBSymbolContext.
|
private |
Definition at line 134 of file SBSymbol.h.
Referenced by get(), GetBaseName(), GetDescription(), GetDisplayName(), GetEndAddress(), GetID(), GetInstructions(), GetMangledName(), GetName(), GetPrologueByteSize(), GetSize(), GetStartAddress(), GetType(), GetValue(), IsDebug(), IsExternal(), IsSynthetic(), operator bool(), operator!=(), operator=(), operator==(), reset(), SBSymbol(), SBSymbol(), SetSymbol(), and ~SBSymbol().