Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 3 - Virtual Memory Manager / Virtual Memory Manager Reference
Routines / Virtual Memory Debugger Support Routines


DebuggerGetMax

The Memory Manager includes a special routine that debuggers use, instead of the Gestalt function, to determine which debugger functions are present.

FUNCTION DebuggerGetMax: LongInt;
DESCRIPTION
The DebuggerGetMax 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:
SelectorRoutine
$0000DebuggerGetMax
$0001DebuggerEnter
$0002DebuggerExit
$0003DebuggerPoll
$0004GetPageState
$0005PageFaultFatal
$0006DebuggerLockMemory
$0007DebuggerUnlockMemory
$0008EnterSupervisorMode

Of course, you should use the Gestalt function to check whether virtual memory
is available at all before you call the DebuggerGetMax function.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the DebuggerGetMax function are
Trap macro Selector
_DebugUtil$0000

The registers on entry and exit for this routine are
Registers on entry
D0Selector code
Registers on exit
D0Highest available selector


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996