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>

source

pub fn arg(&self, n: u32) -> usize

Get a numbered argument from the processor context, determined by the platform calling convention.

source

pub fn set_arg(&mut self, n: u32, value: usize)

Set a numbered argument in the processor context, determined by the platform calling convention.

source

pub fn return_value(&self) -> usize

Get the value of the register used for the platform calling convention’s return value.

source

pub fn set_return_value(&mut self, value: usize)

Set the value of the register used for the platform calling convention’s return value.

source

pub fn eip(&self) -> u32

source

pub fn set_eip(&mut self, eip: u32)

source

pub fn edi(&self) -> u32

source

pub fn set_edi(&mut self, edi: u32)

source

pub fn esi(&self) -> u32

source

pub fn set_esi(&mut self, esi: u32)

source

pub fn ebp(&self) -> u32

source

pub fn set_ebp(&mut self, ebp: u32)

source

pub fn esp(&self) -> u32

source

pub fn set_esp(&mut self, esp: u32)

source

pub fn ebx(&self) -> u32

source

pub fn set_ebx(&mut self, ebx: u32)

source

pub fn edx(&self) -> u32

source

pub fn set_edx(&mut self, edx: u32)

source

pub fn ecx(&self) -> u32

source

pub fn set_ecx(&mut self, ecx: u32)

source

pub fn eax(&self) -> u32

source

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> 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>,

§

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>,

§

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.