]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/m68k/nm-hp300hpux.h
Update FSF address.
[thirdparty/binutils-gdb.git] / gdb / config / m68k / nm-hp300hpux.h
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.
3
4 This file is part of GDB.
5
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.
10
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.
15
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20 /* Do implement the attach and detach commands. */
21
22 #define ATTACH_DETACH
23
24 /* fetch_inferior_registers is in nat-hp300hpux.c. */
25 #define FETCH_INFERIOR_REGISTERS
26
27 /* Get registers from a core file. The floating point stuff is just
28 guesses. */
29 #define NEED_SYS_CORE_H
30 #define REGISTER_U_ADDR(addr, blockend, regno) \
31 { \
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); \
41 else \
42 addr = (int) (((struct proc_regs *)(blockend))->p_float \
43 + (regno) - FPC_REGNUM); \
44 }