Struct lldb::SBFunction
source · [−]pub struct SBFunction {
pub raw: SBFunctionRef,
}
Expand description
A generic function, which can be inlined or not.
Fields
raw: SBFunctionRef
The underlying raw SBFunctionRef
.
Implementations
sourceimpl SBFunction
impl SBFunction
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) -> SBAddress
pub fn start_address(&self) -> SBAddress
Get the address of the start of this function.
sourcepub fn end_address(&self) -> SBAddress
pub fn end_address(&self) -> SBAddress
Get the address of the end of this function.
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 return_type(&self) -> SBType
pub fn return_type(&self) -> SBType
The return type for this function.
sourcepub fn language(&self) -> LanguageType
pub fn language(&self) -> LanguageType
The language that this function was written in.
sourcepub fn is_optimized(&self) -> bool
pub fn is_optimized(&self) -> bool
Returns true if the function was compiled with optimization.
Optimization, in this case, is meant to indicate that the debugger experience may be confusing for the user – variables optimized away, stepping jumping between source lines – and the driver may want to provide some guidance to the user about this. Returns false if unoptimized, or unknown.
Trait Implementations
sourceimpl Clone for SBFunction
impl Clone for SBFunction
sourcefn clone(&self) -> SBFunction
fn clone(&self) -> SBFunction
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more