]>
Commit | Line | Data |
---|---|---|
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 ([email protected]). | |
6 | ||
7 | This file is part of GDB. | |
8 | ||
5140562f | 9 | This program is free software; you can redistribute it and/or modify |
7da1e27d | 10 | it under the terms of the GNU General Public License as published by |
5140562f JG |
11 | the Free Software Foundation; either version 2 of the License, or |
12 | (at your option) any later version. | |
7da1e27d | 13 | |
5140562f | 14 | This program is distributed in the hope that it will be useful, |
7da1e27d SG |
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 | |
5140562f JG |
20 | along with this program; if not, write to the Free Software |
21 | Foundation, 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. */ |
27 | extern 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) |