pub struct Debugger { /* private fields */ }
Available on crate feature
debugger
only.Implementations§
Source§impl Debugger
impl Debugger
pub fn single_step(&mut self)
pub fn step_over(&mut self)
pub fn step_out(&mut self)
Sourcepub fn set_instruction_trace_handler(
&mut self,
handler: Option<Box<dyn Fn(&Registers, &Instruction, bool)>>,
)
pub fn set_instruction_trace_handler( &mut self, handler: Option<Box<dyn Fn(&Registers, &Instruction, bool)>>, )
The handler function’s arguments are:
- registers
- instruction
- jumping: indicates if we are in the middle of a jump
pub fn add_breakpoint(&mut self, address: u32)
pub fn remove_breakpoint(&mut self, address: u32) -> bool
pub fn add_write_breakpoint(&mut self, address: u32)
pub fn remove_write_breakpoint(&mut self, address: u32) -> bool
pub fn add_read_breakpoint(&mut self, address: u32)
pub fn remove_read_breakpoint(&mut self, address: u32) -> bool
pub fn instruction_breakpoints(&self) -> HashSet<u32>
pub fn write_breakpoints(&self) -> &HashSet<u32>
pub fn read_breakpoints(&self) -> &HashSet<u32>
pub fn call_stack(&self) -> &[u32]
Auto Trait Implementations§
impl Freeze for Debugger
impl !RefUnwindSafe for Debugger
impl !Send for Debugger
impl !Sync for Debugger
impl Unpin for Debugger
impl !UnwindSafe for Debugger
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