Check in with @smallbook commented out!
[deliverable/binutils-gdb.git] / gdb / tm-hppahpux.h
CommitLineData
5140562f
JG
1/* Parameters for execution on an HP PA-RISC machine, running HPUX, for GDB.
2 Copyright 1991, 1992 Free Software Foundation, Inc.
7da1e27d
SG
3
4 Contributed by the Center for Software Science at the
5 University of Utah (pa-gdb-bugs@cs.utah.edu).
6
7This file is part of GDB.
8
5140562f 9This program is free software; you can redistribute it and/or modify
7da1e27d 10it under the terms of the GNU General Public License as published by
5140562f
JG
11the Free Software Foundation; either version 2 of the License, or
12(at your option) any later version.
7da1e27d 13
5140562f 14This program is distributed in the hope that it will be useful,
7da1e27d
SG
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
5140562f
JG
20along with this program; if not, write to the Free Software
21Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
7da1e27d 22
5140562f
JG
23/* Mostly it's common to all HPPA's. */
24#include "tm-hppa.h"
7da1e27d 25
5140562f
JG
26/* Saved PC's are different, since there is millicode. */
27extern CORE_ADDR millicode_start, millicode_end;
7da1e27d
SG
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
5140562f 34#undef SAVED_PC_AFTER_CALL
7da1e27d
SG
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.029699 seconds and 4 git commands to generate.