Enum lc3_ensemble::sim::debug::Breakpoint
source · pub enum Breakpoint {
PC(u16),
Reg {
reg: Reg,
value: Comparator,
},
Mem {
addr: u16,
value: Comparator,
},
Generic(Box<dyn Fn(&Simulator) -> bool + Send + Sync + 'static>),
And(Box<[Breakpoint]>),
Or(Box<[Breakpoint]>),
}Expand description
Common breakpoints.
Variants§
PC(u16)
Break when the PC is equal to the given value.
Reg
Break when the provided register is set to a given value.
Mem
Break when the provided memory address is written to with a given value.
Generic(Box<dyn Fn(&Simulator) -> bool + Send + Sync + 'static>)
Breaks based on an arbitrarily defined function.
This can be constructed with the Breakpoint::generic function.
And(Box<[Breakpoint]>)
All conditions have to apply for the break to be applied.
Or(Box<[Breakpoint]>)
One of these conditions have to apply for the break to be applied.
Implementations§
Trait Implementations§
source§impl BitAnd for Breakpoint
impl BitAnd for Breakpoint
source§impl BitOr for Breakpoint
impl BitOr for Breakpoint
source§impl Debug for Breakpoint
impl Debug for Breakpoint
Auto Trait Implementations§
impl Freeze for Breakpoint
impl !RefUnwindSafe for Breakpoint
impl Send for Breakpoint
impl Sync for Breakpoint
impl Unpin for Breakpoint
impl !UnwindSafe for Breakpoint
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