Struct gdbstub::target::ext::base::GdbInterrupt [−][src]
pub struct GdbInterrupt<'a> { /* fields omitted */ }
Expand description
A handle to check for incoming GDB interrupts.
At the moment, checking for incoming interrupts requires periodically polling for pending interrupts. e.g:
ⓘ
let interrupts = gdb_interrupt.no_async(); loop { if interrupts.pending() { return Ok(StopReason::GdbInterrupt) } // execute some number of clock cycles for _ in 0..1024 { match self.system.step() { .. } } }
There is an outstanding issue to add a non-blocking interface to
GdbInterrupt
(see daniel5151/gdbstub#36).
Please comment on the issue if this is something you’d like to see
implemented and/or would like to help out with!
Implementations
impl<'a> GdbInterrupt<'a>
[src]
impl<'a> GdbInterrupt<'a>
[src]pub fn no_async(self) -> GdbInterruptNoAsync<'a>
[src]
pub fn no_async(self) -> GdbInterruptNoAsync<'a>
[src]Returns a GdbInterruptNoAsync
struct which can be polled using a
simple non-blocking pending(&mut self) -> bool
method.