Struct libunwind_rs::CoredumpState [−][src]
This state is used by accessors
Implementations
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]
pub fn access_mem(
&mut self,
asp: &AddressSpace,
address: usize
) -> Result<usize, Error>
[src]
&mut self,
asp: &AddressSpace,
address: usize
) -> Result<usize, Error>
Method gets value for memory address
Arguments
-
asp
- AddressSpace struct -
address
- memory address to access
Trait Implementations
impl AsMut<CoredumpStateRef> for CoredumpState
[src]
fn as_mut(&mut self) -> &mut CoredumpStateRef
[src]
impl AsRef<CoredumpStateRef> for CoredumpState
[src]
fn as_ref(&self) -> &CoredumpStateRef
[src]
impl Borrow<CoredumpStateRef> for CoredumpState
[src]
fn borrow(&self) -> &CoredumpStateRef
[src]
impl BorrowMut<CoredumpStateRef> for CoredumpState
[src]
fn borrow_mut(&mut self) -> &mut CoredumpStateRef
[src]
impl Deref for CoredumpState
[src]
type Target = CoredumpStateRef
The resulting type after dereferencing.
fn deref(&self) -> &CoredumpStateRef
[src]
impl DerefMut for CoredumpState
[src]
fn deref_mut(&mut self) -> &mut CoredumpStateRef
[src]
impl Drop for CoredumpState
[src]
impl ForeignType for CoredumpState
[src]
Auto Trait Implementations
impl RefUnwindSafe for CoredumpState
[src]
impl !Send for CoredumpState
[src]
impl !Sync for CoredumpState
[src]
impl Unpin for CoredumpState
[src]
impl UnwindSafe for CoredumpState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,