1 /* Parameters for native support on HP 9000 model 320, for GDB, the GNU debugger.
2 Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
20 /* Do implement the attach and detach commands. */
24 /* fetch_inferior_registers is in nat-hp300hpux.c. */
25 #define FETCH_INFERIOR_REGISTERS
27 /* Get registers from a core file. The floating point stuff is just
29 #define NEED_SYS_CORE_H
30 #define REGISTER_U_ADDR(addr, blockend, regno) \
32 if (regno < PS_REGNUM) \
33 addr = (int) (&((struct proc_regs *)(blockend))->d0 + regno); \
34 else if (regno == PS_REGNUM) \
35 addr = (int) ((char *) (&((struct proc_regs *)(blockend))->ps) - 2); \
36 else if (regno == PC_REGNUM) \
37 addr = (int) &((struct proc_regs *)(blockend))->pc; \
38 else if (regno < FPC_REGNUM) \
39 addr = (int) (((struct proc_regs *)(blockend))->mc68881 \
40 + ((regno) - FP0_REGNUM) / 2); \
42 addr = (int) (((struct proc_regs *)(blockend))->p_float \
43 + (regno) - FPC_REGNUM); \
This page took 0.029778 seconds and 4 git commands to generate.