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