pub struct DwarfAnalyzer { /* private fields */ }Expand description
DWARF analyzer context that caches parsed information
Implementations§
Source§impl DwarfAnalyzer
impl DwarfAnalyzer
Sourcepub fn new(executable_path: &str) -> Result<Self>
pub fn new(executable_path: &str) -> Result<Self>
Create a new DWARF analyzer for the specified executable
Sourcepub fn get_function_info(&mut self, address: u64) -> Result<FunctionInfo>
pub fn get_function_info(&mut self, address: u64) -> Result<FunctionInfo>
Get function information for a given address
Sourcepub fn cache_size(&self) -> usize
pub fn cache_size(&self) -> usize
Get the number of cached functions
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the function cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DwarfAnalyzer
impl RefUnwindSafe for DwarfAnalyzer
impl Send for DwarfAnalyzer
impl Sync for DwarfAnalyzer
impl Unpin for DwarfAnalyzer
impl UnsafeUnpin for DwarfAnalyzer
impl UnwindSafe for DwarfAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more