[][src]Struct libunwind_rs::CoredumpState

#[repr(transparent)]pub struct CoredumpState(_);

This state is used by accessors

Methods

impl CoredumpState[src]

pub fn new(core_path: &Path) -> Result<CoredumpState, Error>[src]

Method constructs new CoredumpState from path to core file.

Arguments

  • accessors - Bunch of Accessors functions (Ptrace, Coredump)

  • byteorder - Endianess of target machine

pub fn load_file_at_vaddr(&mut self, file_path: &Path, vaddr: usize)[src]

Method maps executable to specified virtual address.

Arguments

  • file_path - path to executable

  • vaddr - address to map

pub fn pid(&mut self) -> i32[src]

Method returns current thread id

pub fn num_threads(&mut self) -> i32[src]

Method returns the number of threads

pub fn select_thread(&mut self, id: i32)[src]

Method selects thread by provided thread id

Arguments

  • id - thread identifier

pub fn access_mem(
    &mut self,
    asp: &AddressSpace,
    address: usize
) -> Result<usize, Error>
[src]

Method gets value for memory address

Arguments

  • asp - AddressSpace struct

  • address - memory address to access

Trait Implementations

impl AsMut<CoredumpStateRef> for CoredumpState[src]

impl AsRef<CoredumpStateRef> for CoredumpState[src]

impl Borrow<CoredumpStateRef> for CoredumpState[src]

impl BorrowMut<CoredumpStateRef> for CoredumpState[src]

impl Deref for CoredumpState[src]

type Target = CoredumpStateRef

The resulting type after dereferencing.

impl DerefMut for CoredumpState[src]

impl Drop for CoredumpState[src]

impl ForeignType for CoredumpState[src]

type CType = UCD_info

The raw C type.

type Ref = CoredumpStateRef

The type representing a reference to this type.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.