Bpoint
REGISTERED_BP_EVENTS: Dict[int, BreakpointEvent] = {}
module-attribute
¶
Breakpoint
¶
Bases: Breakpoint
Breakpoint class, similar to gdb.Breakpoint, but clears the caches associated with the stop event before determining whether it should stop the inferior or not.
Unlike gdb.Breakpoint, users of this class should override should_stop()
, instead of stop()
, as the latter is used to do cache invalidation.
BreakpointEvent
¶
Bases: Breakpoint
Breakpoint class, similar to gdb.Breakpoint, but executes a given callback when, or very shortly after, a the breakpoint is hit, but does not stop the execution of the inferior.
This allows us to execute code that changes the state of the inferior safely after a breakpoint is hit.