Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Parameters for native support on HP 9000 model 320, for GDB, the GNU debugger. |
b6ba6518 KB |
2 | Copyright 1986, 1987, 1989, 1992, 1993, 1996 |
3 | Free Software Foundation, Inc. | |
c906108c | 4 | |
c5aa993b | 5 | This file is part of GDB. |
c906108c | 6 | |
c5aa993b JM |
7 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2 of the License, or | |
10 | (at your option) any later version. | |
c906108c | 11 | |
c5aa993b JM |
12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
c906108c | 16 | |
c5aa993b JM |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software | |
19 | Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
21 | |
22 | /* Do implement the attach and detach commands. */ | |
23 | ||
24 | #define ATTACH_DETACH | |
25 | ||
26 | /* fetch_inferior_registers is in nat-hp300hpux.c. */ | |
27 | #define FETCH_INFERIOR_REGISTERS | |
28 | ||
29 | /* Get registers from a core file. The floating point stuff is just | |
30 | guesses. */ | |
31 | #define NEED_SYS_CORE_H | |
32 | #define REGISTER_U_ADDR(addr, blockend, regno) \ | |
33 | { \ | |
34 | if (regno < PS_REGNUM) \ | |
35 | addr = (int) (&((struct proc_regs *)(blockend))->d0 + regno); \ | |
36 | else if (regno == PS_REGNUM) \ | |
37 | addr = (int) ((char *) (&((struct proc_regs *)(blockend))->ps) - 2); \ | |
38 | else if (regno == PC_REGNUM) \ | |
39 | addr = (int) &((struct proc_regs *)(blockend))->pc; \ | |
40 | else if (regno < FPC_REGNUM) \ | |
41 | addr = (int) (((struct proc_regs *)(blockend))->mc68881 \ | |
42 | + ((regno) - FP0_REGNUM) / 2); \ | |
43 | else \ | |
44 | addr = (int) (((struct proc_regs *)(blockend))->p_float \ | |
45 | + (regno) - FPC_REGNUM); \ | |
46 | } | |
47 | ||
48 | /* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace | |
49 | with five arguments, so programs written for normal ptrace lose. | |
50 | ||
51 | Idiots. | |
52 | ||
53 | (They should have just made it varadic). */ | |
54 | ||
55 | #define FIVE_ARG_PTRACE |