Dwarf

Struct Dwarf 

Source
pub struct Dwarf { /* private fields */ }

Implementations§

Source§

impl Dwarf

Source

pub fn get_member_function_definition( &self, declaration: &Rc<Die>, ) -> Result<Option<Rc<Die>>, SdbError>

Source

pub fn find_local_variable( &self, name: &str, pc: &FileAddress, ) -> Result<Option<Rc<Die>>, SdbError>

Source

pub fn scopes_at_address( &self, address: &FileAddress, ) -> Result<Vec<Rc<Die>>, SdbError>

Source

pub fn find_global_variable( &self, name: &str, ) -> Result<Option<Rc<Die>>, SdbError>

Source

pub fn cfi(&self) -> Rc<RefCell<CallFrameInformation>>

Source

pub fn new(parent: &Weak<Elf>) -> Result<Rc<Self>, SdbError>

Source

pub fn elf_file(&self) -> Rc<Elf>

Source

pub fn get_abbrev_table(&self, offset: usize) -> Rc<HashMap<u64, Rc<Abbrev>>>

Source

pub fn compile_units(&self) -> &Vec<Rc<CompileUnit>>

Source

pub fn compile_unit_containing_address( &self, address: &FileAddress, ) -> Result<Option<Rc<CompileUnit>>, SdbError>

Source

pub fn function_containing_address( &self, address: &FileAddress, ) -> Result<Option<Rc<Die>>, SdbError>

Source

pub fn find_functions(&self, name: &str) -> Result<Vec<Rc<Die>>, SdbError>

Source

pub fn line_entry_at_address( &self, address: &FileAddress, ) -> Result<LineTableIter, SdbError>

Source

pub fn inline_stack_at_address( &self, address: &FileAddress, ) -> Result<Vec<Rc<Die>>, SdbError>

Trait Implementations§

Source§

impl Debug for Dwarf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Dwarf

§

impl !RefUnwindSafe for Dwarf

§

impl !Send for Dwarf

§

impl !Sync for Dwarf

§

impl Unpin for Dwarf

§

impl !UnwindSafe for Dwarf

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.