|
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 () const |
| 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 () const |
| 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 148 of file SBSymbol.cpp.
References m_opaque_ptr.
Referenced by lldb::SBSymbolContext::SetSymbol().
| const char * SBSymbol::GetBaseName | ( | ) | const |
Definition at line 83 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
| bool SBSymbol::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 104 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 162 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, SBAddress, lldb::SBAddress::SetAddress(), and lldb_private::Address::Slide().
| uint32_t SBSymbol::GetID | ( | ) | const |
Get the ID of this symbol, usually the original symbol table index.
Definition at line 206 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, LLDB_INVALID_SYMBOL_ID, and m_opaque_ptr.
| SBInstructionList SBSymbol::GetInstructions | ( | lldb::SBTarget | target | ) |
Definition at line 117 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 123 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 74 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 190 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 183 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 152 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, SBAddress, and lldb::SBAddress::SetAddress().
| SymbolType SBSymbol::GetType | ( | ) |
Definition at line 198 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 238 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 244 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 176 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
| bool SBSymbol::IsDebug | ( | ) | const |
Returns true if the symbol is a debug symbol.
Definition at line 230 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
| bool SBSymbol::IsExternal | ( | ) |
Definition at line 214 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
| bool SBSymbol::IsSynthetic | ( | ) |
Definition at line 222 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 98 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 92 of file SBSymbol.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_ptr, and SBSymbol().
|
protected |
Definition at line 150 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 126 of file SBSymbol.h.
References SBAddress.
Referenced by GetEndAddress(), GetStartAddress(), and SBAddress.
|
friend |
|
friend |
|
friend |
Definition at line 129 of file SBSymbol.h.
References SBSymbol(), SBSymbolContext, and SetSymbol().
Referenced by SBSymbolContext.
|
private |
Definition at line 135 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().