pub enum CpuState {
Normal,
InstructionBreakpoint(u32),
WriteBreakpoint {
addr: u32,
bits: u8,
},
ReadBreakpoint {
addr: u32,
bits: u8,
},
Step,
StepOver,
StepOut,
}
Variants§
Normal
Normal execution, no breakpoints
InstructionBreakpoint(u32)
Available on crate feature
debugger
only.Paused on an execution breakpoint, the pause happen BEFORE execution
WriteBreakpoint
Available on crate feature
debugger
only.Paused on a write breakpoint, together with the value that was written the pause happen AFTER the operation
ReadBreakpoint
Available on crate feature
debugger
only.Paused on a read breakpoint the pause happen AFTER the operation
Step
Available on crate feature
debugger
only.Paused after a single instruction was executed
StepOver
Available on crate feature
debugger
only.Paused after a single instruction was executed, if the instruction is Jal
or Jalr
which is used for function calls, the pause will happen after the function returns,
i.e. step over the function
StepOut
Available on crate feature
debugger
only.Continue execution until the CPU exit the current function
Trait Implementations§
impl Copy for CpuState
impl Eq for CpuState
impl StructuralPartialEq for CpuState
Auto Trait Implementations§
impl Freeze for CpuState
impl RefUnwindSafe for CpuState
impl Send for CpuState
impl Sync for CpuState
impl Unpin for CpuState
impl UnwindSafe for CpuState
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