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: PowerPC System Software /
Chapter 4 - Exception Manager / Exception Manager Reference
Data Structures


Exception Information Records

The Exception Manager passes an exception information record to your exception handler whenever your handler is called as the result of some exception. The exception information record indicates the nature of the exception and provides other information that might be useful to your handler. An exception information record is defined by the ExceptionInformation data type.

struct ExceptionInformation {
   ExceptionKind                    theKind;
   MachineInformation               *machineState;
   RegisterInformation              *registerImage;
   FPUInformation                   *FPUImage;
   union {
      MemoryExceptionInformation    *memoryInfo;
   } info;
};
typedef struct ExceptionInformation ExceptionInformation;
Field Description
theKind
An exception code indicating the kind of exception that occurred. See "Exception Kinds" on page 4-9 for a list of the available exception codes.
machineState
The state of the machine at the time the exception occurred. See "Machine Information Records" on page 4-12 for details on the MachineInformation data type.
registerImage
The contents of the general-purpose registers at the time the exception occurred. See "Register Information Records" on page 4-12 for details on the RegisterInformation data type.
FPUImage
The state of the floating-point processor at the time the exception occurred. See "Floating-Point Information Records" on page 4-14 for details on the FPUInformation data type.
memoryInfo
The logical address of the location in memory that triggered
the exception.

IMPORTANT

The fields of an exception information record are aligned in memory in accordance with 680x0 alignment conventions.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996