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 theGestaltfunction, to determine which debugger functions are present.
FUNCTION DebuggerGetMax: LongInt;DESCRIPTION
TheDebuggerGetMaxfunction returns the highest selector number of the debugger routines that are defined in terms of the_DebugUtiltrap. 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 EnterSupervisorModeOf course, you should use the
Gestaltfunction to check whether virtual memory
is available at all before you call theDebuggerGetMaxfunction.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theDebuggerGetMaxfunction 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