pub struct SBSymbol {
pub raw: SBSymbolRef,
}
Expand description
The symbol possibly associated with a stack frame.
Fields
raw: SBSymbolRef
The underlying raw SBSymbolRef
.
Implementations
sourceimpl SBSymbol
impl SBSymbol
sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
The display name for the function, as it should be seen in a UI.
sourcepub fn mangled_name(&self) -> &str
pub fn mangled_name(&self) -> &str
The mangled (linkage) name for this function.
sourcepub fn get_instructions(
&self,
target: &SBTarget,
flavor: DisassemblyFlavor
) -> SBInstructionList
pub fn get_instructions(
&self,
target: &SBTarget,
flavor: DisassemblyFlavor
) -> SBInstructionList
sourcepub fn start_address(&self) -> Option<SBAddress>
pub fn start_address(&self) -> Option<SBAddress>
Get the address that this symbol refers to, if present.
sourcepub fn end_address(&self) -> Option<SBAddress>
pub fn end_address(&self) -> Option<SBAddress>
If the symbol has an address and the underlying value has a non-zero size, this will have the address of the end of the value.
Note: It seems unfortunate that if the underlying value is 0-sized,
this will result in None
rather than the same address as the
start_address
.
sourcepub fn prologue_byte_size(&self) -> u32
pub fn prologue_byte_size(&self) -> u32
Get the size of the function prologue, in bytes.
sourcepub fn symbol_type(&self) -> SymbolType
pub fn symbol_type(&self) -> SymbolType
What type of symbol is this?
sourcepub fn is_external(&self) -> bool
pub fn is_external(&self) -> bool
Is this symbol externally visible (exported) from the module that contains it?
sourcepub fn is_synthetic(&self) -> bool
pub fn is_synthetic(&self) -> bool
Is this symbol synthetically created from information in the module that contains it?