Skip to main content

BreakpointPatchableProgram

Trait BreakpointPatchableProgram 

Source
pub trait BreakpointPatchableProgram<K> {
    type Instruction: HasBreakpointInstruction;

    // Required methods
    fn install_breakpoint(
        &mut self,
        index: &K,
    ) -> IsBreakpointInstalled<Self::Instruction>;
    fn uninstall_breakpoint(
        &mut self,
        index: &K,
        displaced: Self::Instruction,
    ) -> IsBreakpointInstalled;
}

Required Associated Types§

Required Methods§

Source

fn install_breakpoint( &mut self, index: &K, ) -> IsBreakpointInstalled<Self::Instruction>

Source

fn uninstall_breakpoint( &mut self, index: &K, displaced: Self::Instruction, ) -> IsBreakpointInstalled

Restore the instruction displaced by a breakpoint.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<I, V, Ty, Info> BreakpointPatchableProgram<u32> for LocalModule<I, V, Ty, Info>

Source§

type Instruction = I

Source§

fn install_breakpoint(&mut self, index: &u32) -> IsBreakpointInstalled<I>

Source§

fn uninstall_breakpoint( &mut self, index: &u32, displaced: I, ) -> IsBreakpointInstalled

Implementors§