* tm-hppa.h: New file, architectural definition of HP PA.
[deliverable/binutils-gdb.git] / gdb / tm-hppahpux.h
1 /* Parameters for execution on an HP PA-RISC machine, running HPUX, for GDB.
2 Copyright 1991, 1992 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
22
23 /* Mostly it's common to all HPPA's. */
24 #include "tm-hppa.h"
25
26 /* Saved PC's are different, since there is millicode. */
27 extern CORE_ADDR millicode_start, millicode_end;
28
29 /* Immediately after a function call, return the saved pc.
30 Can't go through the frames for this because on some machines
31 the new frame is not set up until the new function executes
32 some instructions. */
33
34 #undef SAVED_PC_AFTER_CALL
35 #define SAVED_PC_AFTER_CALL(frame) \
36 ((get_frame_pc (frame) >= millicode_start \
37 && get_frame_pc (frame) < millicode_end) ? \
38 read_register (31) & ~3 \
39 : read_register (RP_REGNUM) & ~3)
This page took 0.032923 seconds and 4 git commands to generate.