FastBreakProc:
TYPE =
PROC [
data: FastBreakData, frame: PrincOps.FrameHandle, sv: PrincOps.SVPointer]
RETURNS [useOldBreak: BOOL ← FALSE];
The type of callback procedure supplied by the user. If useOldBreak, then we call the breakpoint handler in use at the time the first fast break was set.
FastBreakData:
TYPE =
LONG
POINTER;
The type of data passed to/from the user's routines.
FastBreakId:
TYPE =
LONG
POINTER
TO
INT;
Points at the event counter for the breakpoint.
FastBreaksLeft:
PUBLIC
PROC
RETURNS [
NAT];
FastBreaksLeft[] returns the number of fast break slots remaining in the table.
SetFastBreak:
PROC
[code: LONG POINTER, pc: PrincOps.BytePC, proc: FastBreakProc ← NIL, data: FastBreakData ← NIL] RETURNS [id: FastBreakId];
SetFastBreak[code, pc, proc, data] adds a fast break at the specified location. The pointer returned is used to distinguish which break to clear when clearing the break. If NIL is returned, then the breakpoint could not be set (due to the table being full). The use of proc = NIL is for fast event counters.
ClearFastBreak:
PROC
[id: FastBreakId, proc: FastBreakProc ← NIL, data: FastBreakData ← NIL]
RETURNS [found: BOOL];
ClearFastBreak[id, proc, data] clears the specified fast break, provided that the parameters agree with an active fast break. TRUE is returned iff such a break was found.
ClearAllFastBreaks:
PROC
[releaseResources: BOOL ← TRUE] RETURNS [cleared: NAT];
ClearAllFastBreaks[] clears all fast breaks. It also releases system resources used by fast breaks if releaseResources = TRUE. It returns the number of fast breaks removed.