Elf

Struct Elf 

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

Implementations§

Source§

impl Elf

Source

pub fn data_pointer_as_file_offset(self: &Rc<Self>, ptr: &Bytes) -> FileOffset

Source

pub fn file_offset_as_data_pointer(self: &Rc<Self>, offset: FileOffset) -> Bytes

Source

pub fn get_section_start_address( self: &Rc<Self>, name: &str, ) -> Option<FileAddress>

Source

pub fn build_symbol_maps(self: &Rc<Self>)

Source

pub fn get_symbol_at_virt_address( self: &Rc<Self>, address: VirtualAddress, ) -> Option<Rc<SdbElf64Sym>>

Source

pub fn get_symbol_containing_virt_address( self: &Rc<Self>, address: VirtualAddress, ) -> Option<Rc<SdbElf64Sym>>

Source

pub fn new(path: &Path) -> Result<Rc<Self>, SdbError>

Source

pub fn path(&self) -> &Path

Source

pub fn get_header(&self) -> &SdbElf64Ehdr

Source

pub fn get_section_name(&self, index: usize) -> &str

Source

pub fn get_section(&self, name: &str) -> Option<Rc<SdbElf64Shdr>>

Source

pub fn get_section_contents(&self, name: &str) -> Bytes

Source

pub fn get_string(&self, index: usize) -> &str

Source

pub fn load_bias(&self) -> VirtualAddress

Source

pub fn notify_loaded(&self, address: VirtualAddress)

Source

pub fn get_section_containing_file_addr( &self, address: &FileAddress, ) -> Option<Rc<SdbElf64Shdr>>

Source

pub fn get_section_containing_virt_addr( &self, address: VirtualAddress, ) -> Option<Rc<SdbElf64Shdr>>

Source

pub fn get_symbols_by_name(&self, name: &str) -> Vec<Rc<SdbElf64Sym>>

Source

pub fn get_symbol_at_file_address( &self, address: FileAddress, ) -> Option<Rc<SdbElf64Sym>>

Source

pub fn get_symbol_containing_file_address( &self, address: FileAddress, ) -> Option<Rc<SdbElf64Sym>>

Source

pub fn get_dwarf(&self) -> Rc<Dwarf>

Trait Implementations§

Source§

impl Debug for Elf

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Elf

§

impl !RefUnwindSafe for Elf

§

impl !Send for Elf

§

impl !Sync for Elf

§

impl Unpin for Elf

§

impl !UnwindSafe for Elf

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.