]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/ns32k/nm-umax.h
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / config / ns32k / nm-umax.h
CommitLineData
5076de82
FF
1/* Definitions to make GDB run on an encore under umax 4.2
2 Copyright 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#define ATTACH_DETACH
22
23/* Offset of registers within u area. */
24#define U_REGS_OFFSET 0
25
26/* called from register_addr() -- blockend not used for now */
27#define REGISTER_U_ADDR(addr, blockend, regno) \
28{ \
29 switch (regno) { \
30 case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: \
31 addr = PU_R0 - (regno * sizeof (int)); break; \
32 case SP_REGNUM: \
33 addr = PU_SP; break; \
34 case PC_REGNUM: \
35 addr = PU_PC; break; \
36 case FP_REGNUM: \
37 addr = PU_FP; break; \
38 case PS_REGNUM: \
39 addr = PU_PSL; break; \
40 case FPS_REGNUM: \
41 addr = PU_FSR; break; \
42 case FP0_REGNUM + 0: case FP0_REGNUM + 1: \
43 case FP0_REGNUM + 2: case FP0_REGNUM + 3: \
44 case FP0_REGNUM + 4: case FP0_REGNUM + 5: \
45 case FP0_REGNUM + 6: case FP0_REGNUM + 7: \
46 addr = PU_F0 + (regno - FP0_REGNUM) * sizeof (float); break; \
47 case LP0_REGNUM + 0: case LP0_REGNUM + 1: \
48 case LP0_REGNUM + 2: case LP0_REGNUM + 3: \
49 addr = PU_F0 + (regno - LP0_REGNUM) * sizeof (double); break; \
50 default: \
51 printf ("bad argument to REGISTER_U_ADDR %d\n", regno); \
52 abort (); \
53 } \
54}