* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[deliverable/binutils-gdb.git] / gdb / config / m68k / nm-hp300hpux.h
CommitLineData
5076de82
FF
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
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
6c9638b4 18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
5076de82
FF
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
073c6b2b
ILT
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}
d009ffd8
SS
45
46/* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace
47 with five arguments, so programs written for normal ptrace lose.
48
49 Idiots.
50
51 (They should have just made it varadic). */
52
53#define FIVE_ARG_PTRACE
This page took 0.272971 seconds and 4 git commands to generate.