1 /* Fault handler information. MacOSX/PowerPC version.
2 Copyright (C) 2003-2004 Bruno Haible <bruno@clisp.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
18 #define SIGSEGV_EXC_STATE_TYPE ppc_exception_state_t
19 #define SIGSEGV_EXC_STATE_FLAVOR PPC_EXCEPTION_STATE
20 #define SIGSEGV_EXC_STATE_COUNT PPC_EXCEPTION_STATE_COUNT
21 #define SIGSEGV_THREAD_STATE_TYPE ppc_thread_state_t
22 #define SIGSEGV_THREAD_STATE_FLAVOR PPC_THREAD_STATE
23 #define SIGSEGV_THREAD_STATE_COUNT PPC_THREAD_STATE_COUNT
24 #define SIGSEGV_FAULT_ADDRESS(thr_state,exc_state) (exc_state).dar
25 #define SIGSEGV_STACK_POINTER(thr_state) (thr_state).r1
26 #define SIGSEGV_PROGRAM_COUNTER(thr_state) (thr_state).srr0