Important: The information in this document is obsolete and should not be used for new development.
DebuggerGetMax
The Memory Manager includes a special routine that debuggers use, instead of theGestalt
function, to determine which debugger functions are present.
FUNCTION DebuggerGetMax: LongInt;DESCRIPTION
TheDebuggerGetMax
function returns the highest selector number of the debugger routines that are defined in terms of the_DebugUtil
trap. The numbers correspond to the following routines:
Selector Routine $0000 DebuggerGetMax
$0001 DebuggerEnter
$0002 DebuggerExit
$0003 DebuggerPoll
$0004 GetPageState
$0005 PageFaultFatal
$0006 DebuggerLockMemory
$0007 DebuggerUnlockMemory
$0008 EnterSupervisorMode
Of course, you should use the
Gestalt
function to check whether virtual memory
is available at all before you call theDebuggerGetMax
function.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theDebuggerGetMax
function are
Trap macro Selector _DebugUtil $0000 The registers on entry and exit for this routine are
Registers on entry D0 Selector code
Registers on exit D0 Highest available selector