]>
Commit | Line | Data |
---|---|---|
fb1415ae JG |
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 ([email protected]). | |
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) | |
e5e6b6b1 SG |
40 | |
41 | /* We need to figure out where the text region is so that we use the | |
42 | appropriate ptrace operator to manipulate text. Simply reading/writing | |
43 | user space will crap out HPUX. */ | |
44 | ||
45 | #define NEED_TEXT_START_END |