2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
[binutils-gdb.git] / gdb / config / pa / tm-hppah.h
1 /* Parameters for execution on an HP PA-RISC machine, running HPUX, for GDB.
2 Copyright 1991, 1992, 1995, 1998, 2002, 2003
3 Free Software Foundation, Inc.
4
5 Contributed by the Center for Software Science at the
6 University of Utah (pa-gdb-bugs@cs.utah.edu).
7
8 This file is part of GDB.
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA. */
24
25 struct frame_info;
26
27 /* The solib hooks are not really designed to have a list of hook
28 and handler routines. So until we clean up those interfaces you
29 either get SOM shared libraries or HP's unusual PA64 ELF shared
30 libraries, but not both. */
31 #ifdef GDB_TARGET_IS_HPPA_20W
32 #include "pa64solib.h"
33 #endif
34
35 #ifndef GDB_TARGET_IS_HPPA_20W
36 #include "somsolib.h"
37 #endif
38
39 extern void hppa_hpux_frame_saved_pc_in_sigtramp (struct frame_info *fi,
40 CORE_ADDR *tmp);
41 #define FRAME_SAVED_PC_IN_SIGTRAMP(FRAME, TMP) \
42 hppa32_hpux_frame_saved_pc_in_sigtramp (FRAME, TMP)
43
44 extern void hppa_hpux_frame_base_before_sigtramp (struct frame_info *fi,
45 CORE_ADDR *tmp);
46 #define FRAME_BASE_BEFORE_SIGTRAMP(FRAME, TMP) \
47 hppa32_hpux_frame_base_before_sigtramp (FRAME, TMP)
48
49 extern void hppa_hpux_frame_find_saved_regs_in_sigtramp
50 (struct frame_info *fi, CORE_ADDR *fsr);
51 #define FRAME_FIND_SAVED_REGS_IN_SIGTRAMP(FRAME, FSR) \
52 hppa32_hpux_frame_find_saved_regs_in_sigtramp (FRAME, FSR)
53
54 /* For HP-UX on PA-RISC we have an implementation
55 for the exception handling target op (in hppa-tdep.c) */
56 #define CHILD_ENABLE_EXCEPTION_CALLBACK
57 #define CHILD_GET_CURRENT_EXCEPTION_EVENT
58
59 /* Mostly it's common to all HPPA's. */
60 #include "pa/tm-hppa.h"