SBSymbol#
- class lldb.SBSymbol(*args)#
Represents the symbol possibly associated with a stack frame.
SBModule
contains SBSymbol(s). SBSymbol can also be retrieved fromSBFrame
.Attributes Summary
A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.
A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this symbol.
A read only property that returns a boolean value that indicates if this symbol is externally visiable (exported) from the module that contains it.
A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this symbol.
A read only property that returns the mangled (linkage) name for this symbol as a string.
A read only property that returns the name for this symbol as a string.
A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.
A read only property that returns a boolean value that indicates if this symbol was synthetically created from information in module that contains it.
A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSymbolType") that represents the type of this symbol.
Methods Summary
GetBaseName
(SBSymbol self)GetDescription
(SBSymbol self, ...)GetDisplayName
(SBSymbol self)Get the end address of this symbol
GetID
()Get the ID of this symbol, usually the original symbol table index.
GetInstructions
(-> SBInstructionList)GetMangledName
(SBSymbol self)GetName
(SBSymbol self)GetPrologueByteSize
(SBSymbol self)GetSize
()Get the size of the symbol.
Get the start address of this symbol
GetType
(SBSymbol self)GetTypeAsString
(symbol_type)Get the string representation of a symbol type.
GetTypeFromString
(str)Get the symbol type from a string representation.
GetValue
()Get the raw value of a symbol.
IsDebug
()Returns true if the symbol is a debug symbol.
IsExternal
(SBSymbol self)IsSynthetic
(SBSymbol self)IsValid
(SBSymbol self)Attributes Documentation
- addr#
A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.
- end_addr#
A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this symbol.
- external#
A read only property that returns a boolean value that indicates if this symbol is externally visiable (exported) from the module that contains it.
- instructions#
A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this symbol.
- mangled#
A read only property that returns the mangled (linkage) name for this symbol as a string.
- name#
A read only property that returns the name for this symbol as a string.
- prologue_size#
A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.
- synthetic#
A read only property that returns a boolean value that indicates if this symbol was synthetically created from information in module that contains it.
- type#
A read only property that returns an lldb enumeration value (see enumerations that start with “lldb.eSymbolType”) that represents the type of this symbol.
Methods Documentation
- GetBaseName(SBSymbol self) char const * #
- GetDescription(SBSymbol self, SBStream description) bool #
- GetDisplayName(SBSymbol self) char const * #
- GetEndAddress()#
Get the end address of this symbol
- Return type:
- Returns:
If the symbol’s value is not an address, an invalid SBAddress object will be returned. If the symbol’s value is an address, a valid SBAddress object will be returned.
- GetID()#
Get the ID of this symbol, usually the original symbol table index.
- Return type:
int
- Returns:
Returns the ID of this symbol.
- GetInstructions(SBSymbol self, SBTarget target) SBInstructionList #
- GetInstructions(SBSymbol self, SBTarget target, char const * flavor_string) SBInstructionList
- GetMangledName(SBSymbol self) char const * #
- GetName(SBSymbol self) char const * #
- GetPrologueByteSize(SBSymbol self) uint32_t #
- 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).
- Return type:
int
- Returns:
Returns the size of a symbol from the symbol table.
- GetStartAddress()#
Get the start address of this symbol
- Return type:
- Returns:
If the symbol’s value is not an address, an invalid SBAddress object will be returned. If the symbol’s value is an address, a valid SBAddress object will be returned.
- GetType(SBSymbol self) lldb::SymbolType #
- static GetTypeAsString(symbol_type)#
Get the string representation of a symbol type.
- static GetTypeFromString(str)#
Get the symbol type from a string representation.
- 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.
- Return type:
int
- Returns:
Returns the raw integer value of a symbol from the symbol table.
- IsDebug()#
Returns true if the symbol is a debug symbol.
- IsExternal(SBSymbol self) bool #
- IsSynthetic(SBSymbol self) bool #
- IsValid(SBSymbol self) bool #
- get_instructions_from_current_target()#