Menu

Breakpoints

Rocky Bernstein

This runtime has support to make setting debugger breakpoint handling fast.

#brkpt_alloc() -> bool

Allocates a breakpoint byte vector of zeros for each
instruction in the instruction sequence. true is returned if
vector was allocated, false if there already was one allocated,
and nil if there was some problem.

#brkpt_dealloc() -> bool

Deallocates a previously allocated breakpoint byte vector in the
instruction sequence. true is returned if vector was allocated and now free
false if there breakpoints had been allocated, and nil if there was
some problem.

#brkpt_get(iseq, offset) -> bool

Test if a breakpoint is set in the instruction sequence at offset.
true is returned if there is a breakpoint previously set, false
if not, and nil if there was some problem.

#brkpt_set()

#brkpt_get(iseq, offset) -> bool

Set a breakpoint is the instruction sequence at offset.
true is returned the breakpoint was set successfully, false
if not, and nil if there was some problem.

#brkpt_unset()

Unset a breakpoint is the instruction sequence at offset.
true is returned the breakpoint was unset successfully, false
if not, and nil if there was some problem.

#brkpts() -> Array

Returns a list of breakpoints in effect for this instruction sequence.
If no breakpoints have been allocated nil is returned. If breakpoints
were allocated but none are set then the empty array is returned.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.