Struct frida_gum::interceptor::InvocationContext
source · pub struct InvocationContext<'a> { /* private fields */ }
Available on crate feature
invocation-listener
only.Expand description
Represents the processor state when an InvocationListener
is entered.
Implementations§
source§impl<'a> InvocationContext<'a>
impl<'a> InvocationContext<'a>
sourcepub fn point_cut(&self) -> PointCut
pub fn point_cut(&self) -> PointCut
Point at which the InvocationContext
exists.
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(&self, n: u32, value: usize)
pub fn set_arg(&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(&self, value: usize)
pub fn set_return_value(&self, value: usize)
Set the value of the register used for the platform calling convention’s return value.
sourcepub fn return_addr(&self) -> usize
pub fn return_addr(&self) -> usize
Get the destination address after the function returns.
sourcepub fn replacement_data(&mut self) -> Option<NativePointer>
pub fn replacement_data(&mut self) -> Option<NativePointer>
Get the replacement_data
passed at replace time.
sourcepub fn cpu_context(&self) -> CpuContext<'_>
pub fn cpu_context(&self) -> CpuContext<'_>
Get the CpuContext
at the time of invocation.
Auto Trait Implementations§
impl<'a> Freeze for InvocationContext<'a>
impl<'a> RefUnwindSafe for InvocationContext<'a>
impl<'a> !Send for InvocationContext<'a>
impl<'a> !Sync for InvocationContext<'a>
impl<'a> Unpin for InvocationContext<'a>
impl<'a> UnwindSafe for InvocationContext<'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