Struct frida_gum::CpuContext
source · pub struct CpuContext<'a> { /* private fields */ }
Expand description
Platform-dependent access to processor state.
Implementations§
source§impl<'a> CpuContext<'a>
impl<'a> CpuContext<'a>
sourcepub fn arg(&self, n: u32) -> usize
pub fn arg(&self, n: u32) -> usize
Get a numbered argument from the processor context, determined by the platform calling convention.
sourcepub fn set_arg(&mut self, n: u32, value: usize)
pub fn set_arg(&mut self, n: u32, value: usize)
Set a numbered argument in the processor context, determined by the platform calling convention.
sourcepub fn return_value(&self) -> usize
pub fn return_value(&self) -> usize
Get the value of the register used for the platform calling convention’s return value.
sourcepub fn set_return_value(&mut self, value: usize)
pub fn set_return_value(&mut self, value: usize)
Set the value of the register used for the platform calling convention’s return value.
pub fn eip(&self) -> u32
pub fn set_eip(&mut self, eip: u32)
pub fn edi(&self) -> u32
pub fn set_edi(&mut self, edi: u32)
pub fn esi(&self) -> u32
pub fn set_esi(&mut self, esi: u32)
pub fn ebp(&self) -> u32
pub fn set_ebp(&mut self, ebp: u32)
pub fn esp(&self) -> u32
pub fn set_esp(&mut self, esp: u32)
pub fn ebx(&self) -> u32
pub fn set_ebx(&mut self, ebx: u32)
pub fn edx(&self) -> u32
pub fn set_edx(&mut self, edx: u32)
pub fn ecx(&self) -> u32
pub fn set_ecx(&mut self, ecx: u32)
pub fn eax(&self) -> u32
pub fn set_eax(&mut self, eax: u32)
Auto Trait Implementations§
impl<'a> Freeze for CpuContext<'a>
impl<'a> RefUnwindSafe for CpuContext<'a>
impl<'a> !Send for CpuContext<'a>
impl<'a> !Sync for CpuContext<'a>
impl<'a> Unpin for CpuContext<'a>
impl<'a> UnwindSafe for CpuContext<'a>
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