* Makefile.in (VERSION): Roll to 4.6.8.
[deliverable/binutils-gdb.git] / gdb / xm-umax.h
1 /* Definitions to make GDB run on an encore under umax 4.2
2 Copyright 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 #define HOST_BYTE_ORDER LITTLE_ENDIAN
21
22 #define HAVE_WAIT_STRUCT
23
24 /* Offset of registers within u area. */
25 #define U_REGS_OFFSET 0
26
27 /* Do implement the attach and detach commands... */
28 #define ATTACH_DETACH
29
30 /* Doesn't have siginterupt. */
31 #define NO_SIGINTERRUPT
32
33 /* called from register_addr() -- blockend not used for now */
34 #define REGISTER_U_ADDR(addr, blockend, regno) \
35 { \
36 switch (regno) { \
37 case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: \
38 addr = PU_R0 - (regno * sizeof (int)); break; \
39 case SP_REGNUM: \
40 addr = PU_SP; break; \
41 case PC_REGNUM: \
42 addr = PU_PC; break; \
43 case FP_REGNUM: \
44 addr = PU_FP; break; \
45 case PS_REGNUM: \
46 addr = PU_PSL; break; \
47 case FPS_REGNUM: \
48 addr = PU_FSR; break; \
49 case FP0_REGNUM + 0: case FP0_REGNUM + 1: \
50 case FP0_REGNUM + 2: case FP0_REGNUM + 3: \
51 case FP0_REGNUM + 4: case FP0_REGNUM + 5: \
52 case FP0_REGNUM + 6: case FP0_REGNUM + 7: \
53 addr = PU_F0 + (regno - FP0_REGNUM) * sizeof (float); break; \
54 case LP0_REGNUM + 0: case LP0_REGNUM + 1: \
55 case LP0_REGNUM + 2: case LP0_REGNUM + 3: \
56 addr = PU_F0 + (regno - LP0_REGNUM) * sizeof (double); break; \
57 default: \
58 printf ("bad argument to REGISTER_U_ADDR %d\n", regno); \
59 abort (); \
60 } \
61 }
This page took 0.030205 seconds and 4 git commands to generate.