pub struct CoredumpState(/* private fields */);
Expand description
This state is used by accessors
Implementations§
Source§impl CoredumpState
impl CoredumpState
Sourcepub fn new(core_path: &Path) -> Result<CoredumpState, Error>
pub fn new(core_path: &Path) -> Result<CoredumpState, Error>
Method constructs new CoredumpState from path to core file.
§Arguments
-
accessors
- Bunch of Accessors functions (Ptrace, Coredump) -
byteorder
- Endianess of target machine
Sourcepub fn load_file_at_vaddr(&mut self, file_path: &Path, vaddr: usize)
pub fn load_file_at_vaddr(&mut self, file_path: &Path, vaddr: usize)
Method maps executable to specified virtual address.
§Arguments
-
file_path
- path to executable -
vaddr
- address to map
Sourcepub fn num_threads(&mut self) -> i32
pub fn num_threads(&mut self) -> i32
Method returns the number of threads
Sourcepub fn select_thread(&mut self, id: i32)
pub fn select_thread(&mut self, id: i32)
Sourcepub fn access_mem(
&mut self,
asp: &AddressSpace,
address: usize,
) -> Result<usize, Error>
pub fn access_mem( &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§
Source§impl AsMut<CoredumpStateRef> for CoredumpState
impl AsMut<CoredumpStateRef> for CoredumpState
Source§fn as_mut(&mut self) -> &mut CoredumpStateRef
fn as_mut(&mut self) -> &mut CoredumpStateRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<CoredumpStateRef> for CoredumpState
impl AsRef<CoredumpStateRef> for CoredumpState
Source§fn as_ref(&self) -> &CoredumpStateRef
fn as_ref(&self) -> &CoredumpStateRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<CoredumpStateRef> for CoredumpState
impl Borrow<CoredumpStateRef> for CoredumpState
Source§fn borrow(&self) -> &CoredumpStateRef
fn borrow(&self) -> &CoredumpStateRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<CoredumpStateRef> for CoredumpState
impl BorrowMut<CoredumpStateRef> for CoredumpState
Source§fn borrow_mut(&mut self) -> &mut CoredumpStateRef
fn borrow_mut(&mut self) -> &mut CoredumpStateRef
Mutably borrows from an owned value. Read more
Source§impl Deref for CoredumpState
impl Deref for CoredumpState
Source§type Target = CoredumpStateRef
type Target = CoredumpStateRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &CoredumpStateRef
fn deref(&self) -> &CoredumpStateRef
Dereferences the value.
Source§impl DerefMut for CoredumpState
impl DerefMut for CoredumpState
Source§fn deref_mut(&mut self) -> &mut CoredumpStateRef
fn deref_mut(&mut self) -> &mut CoredumpStateRef
Mutably dereferences the value.
Source§impl Drop for CoredumpState
impl Drop for CoredumpState
Source§impl ForeignType for CoredumpState
impl ForeignType for CoredumpState
Auto Trait Implementations§
impl Freeze for CoredumpState
impl RefUnwindSafe for CoredumpState
impl !Send for CoredumpState
impl !Sync for CoredumpState
impl Unpin for CoredumpState
impl UnwindSafe for CoredumpState
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