#include <mach/exception_types.h> also included by
<mach/mach.h>mach/exception_types.h
macroEXCEPTION_DEFAULT
#define EXCEPTION_DEFAULT 1
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise message including the thread identity.
macroEXCEPTION_STATE
#define EXCEPTION_STATE 2
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise_state message including the thread state.
macroEXCEPTION_STATE_IDENTITY
#define EXCEPTION_STATE_IDENTITY 3
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise_state_identity message including the thread identity and state.
macroEXCEPTION_IDENTITY_PROTECTED
#define EXCEPTION_IDENTITY_PROTECTED 4
macroEXCEPTION_STATE_IDENTITY_PROTECTED
#define EXCEPTION_STATE_IDENTITY_PROTECTED 5
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Send a catch_exception_raise_state_identity message including the thread identity and state. Mark the exception port (and associated exceptions) as protected.
macroMACH_EXCEPTION_BACKTRACE_PREFERRED
#define MACH_EXCEPTION_BACKTRACE_PREFERRED 0x20000000
macroMACH_EXCEPTION_ERRORS
#define MACH_EXCEPTION_ERRORS 0x40000000
macroMACH_EXCEPTION_CODES
#define MACH_EXCEPTION_CODES 0x80000000
macroMACH_EXCEPTION_MASK
#define MACH_EXCEPTION_MASK (MACH_EXCEPTION_CODES | MACH_EXCEPTION_ERRORS | MACH_EXCEPTION_BACKTRACE_PREFERRED)
macroEXC_MASK_BAD_ACCESS
#define EXC_MASK_BAD_ACCESS (1 << EXC_BAD_ACCESS)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Could not access memory.
macroEXC_MASK_BAD_INSTRUCTION
#define EXC_MASK_BAD_INSTRUCTION (1 << EXC_BAD_INSTRUCTION)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Instruction failed. Illegal or undefined instruction or operand.
macroEXC_MASK_ARITHMETIC
#define EXC_MASK_ARITHMETIC (1 << EXC_ARITHMETIC)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Arithmetic exception
macroEXC_MASK_EMULATION
#define EXC_MASK_EMULATION (1 << EXC_EMULATION)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Emulation instruction. Emulation support instruction encountered.
macroEXC_MASK_SOFTWARE
#define EXC_MASK_SOFTWARE (1 << EXC_SOFTWARE)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Software generated exception.
macroEXC_MASK_BREAKPOINT
#define EXC_MASK_BREAKPOINT (1 << EXC_BREAKPOINT)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Trace, breakpoint, etc.
macroEXC_MASK_SYSCALL
#define EXC_MASK_SYSCALL (1 << EXC_SYSCALL)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
System call requested.
macroEXC_MASK_MACH_SYSCALL
#define EXC_MASK_MACH_SYSCALL (1 << EXC_MACH_SYSCALL)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
System call with a number in the Mach call range requested.
macroEXC_MASK_RPC_ALERT
#define EXC_MASK_RPC_ALERT (1 << EXC_RPC_ALERT)
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Exceptional condition encountered during execution of RPC.
macroEXC_MASK_CRASH
#define EXC_MASK_CRASH (1 << EXC_CRASH)
macroEXC_MASK_RESOURCE
#define EXC_MASK_RESOURCE (1 << EXC_RESOURCE)
macroEXC_MASK_GUARD
#define EXC_MASK_GUARD (1 << EXC_GUARD)
macroEXC_MASK_CORPSE_NOTIFY
#define EXC_MASK_CORPSE_NOTIFY (1 << EXC_CORPSE_NOTIFY)
macroEXC_MASK_ALL
#define EXC_MASK_ALL (EXC_MASK_BAD_ACCESS | EXC_MASK_BAD_INSTRUCTION | EXC_MASK_ARITHMETIC | EXC_MASK_EMULATION | EXC_MASK_SOFTWARE | EXC_MASK_BREAKPOINT | EXC_MASK_SYSCALL | EXC_MASK_MACH_SYSCALL | EXC_MASK_RPC_ALERT | EXC_MASK_RESOURCE | EXC_MASK_GUARD | EXC_MASK_MACHINE)
macroEXC_SOFT_SIGNAL
Machine independent codes for EXC_SOFTWARE
Codes 0x10000 - 0x1FFFF reserved for OS emulation (Unix)
0x10000 - 0x10002 in use for unix signals
0x20000 - 0x2FFFF reserved for MACF
#define EXC_SOFT_SIGNAL 0x10003
Unix signal exceptions
macroEXC_MACF_MAX
#define EXC_MACF_MAX 0x2FFFF
typedefexception_type_t
typedef int exception_type_t
typedefexception_data_type_t
typedef integer_t exception_data_type_t
typedefmach_exception_data_type_t
typedef int64_t mach_exception_data_type_t
typedefexception_behavior_t
typedef int exception_behavior_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
| EXCEPTION_DEFAULT | Send a catch_exception_raise message including the thread identity. |
| EXCEPTION_DEFAULT_PROTECTED | Send a catch_exception_raise message including the thread identity. Mark the exception port (and associated exceptions) as protected. |
| EXCEPTION_STATE | Send a catch_exception_raise_state message including the thread state. |
| EXCEPTION_STATE_PROTECTED | Send a catch_exception_raise_state message including the thread state. Mark the exception port (and associated exceptions) as protected. |
| EXCEPTION_STATE_IDENTITY | Send a catch_exception_raise_state_identity message including the thread identity and state. |
| EXCEPTION_STATE_IDENTITY_PROTECTED | Send a catch_exception_raise_state_identity message including the thread identity and state. Mark the exception port (and associated exceptions) as protected. |
typedefexception_data_t
typedef exception_data_type_t *exception_data_t
typedefmach_exception_data_t
typedef mach_exception_data_type_t *mach_exception_data_t
typedefexception_mask_t
typedef unsigned int exception_mask_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
| EXC_MASK_BAD_ACCESS | Could not access memory. |
| EXC_MASK_BAD_INSTRUCTION | Instruction failed. Illegal or undefined instruction or operand. |
| EXC_MASK_ARITHMETIC | Arithmetic exception |
| EXC_MASK_EMULATION | Emulation instruction. Emulation support instruction encountered. |
| EXC_MASK_SOFTWARE | Software generated exception. |
| EXC_MASK_BREAKPOINT | Trace, breakpoint, etc. |
| EXC_MASK_SYSCALL | System call requested. |
| EXC_MASK_MACH_SYSCALL | System call with a number in the Mach call range requested. |
| EXC_MASK_RPC_ALERT | Exceptional condition encountered during execution of RPC. |
typedefexception_mask_array_t
typedef exception_mask_t *exception_mask_array_t
typedefexception_behavior_array_t
typedef exception_behavior_t *exception_behavior_array_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
| EXCEPTION_DEFAULT | Send a catch_exception_raise message including the thread identity. |
| EXCEPTION_STATE | Send a catch_exception_raise_state message including the thread state. |
| EXCEPTION_STATE_IDENTITY | Send a catch_exception_raise_state_identity message including the thread identity and state. |
typedefexception_flavor_array_t
typedef thread_state_flavor_t *exception_flavor_array_t
typedefexception_port_array_t
typedef mach_port_t *exception_port_array_t
typedefexception_port_info_array_t
typedef ipc_info_port_t *exception_port_info_array_t
typedefmach_exception_code_t
typedef mach_exception_data_type_t mach_exception_code_t
typedefmach_exception_subcode_t
typedef mach_exception_data_type_t mach_exception_subcode_t