bzero -> memset
[deliverable/binutils-gdb.git] / gdb / config / ns32k / xm-merlin.h
CommitLineData
5076de82
FF
1/* Definitions to make GDB run on a merlin under utek 2.1
2 Copyright 1986, 1987, 1989, 1991, 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
18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20#include <machine/reg.h>
21
22/* This machine doesn't have the siginterrupt call. */
23#define NO_SIGINTERRUPT
24
25/* Under Utek, a ptrace'd process can be the only active process for
26 an executable. Therefore instead of /bin/sh use gdb-sh (which should
27 just be a copy of /bin/sh which is world readable and writeable). */
6ffbfcc2
JK
28/* FIXME: name should be passed in from Makefile so it can use prefix. */
29#define SHELL_FILE "/usr/local/lib/gdb-sh"
5076de82
FF
30
31#define HOST_BYTE_ORDER LITTLE_ENDIAN
32
33/* This is the amount to subtract from u.u_ar0
34 to get the offset in the core file of the register values. */
35
36#define KERNEL_U_ADDR (0xfef000)
37
38#define REGISTER_U_ADDR(addr, blockend, regno) \
39{ \
40 switch (regno) { \
41 case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: \
42 addr = blockend + (R0 - regno) * sizeof (int); break; \
43 case PC_REGNUM: \
44 addr = blockend + PC * sizeof (int); break; \
45 case SP_REGNUM: \
46 addr = blockend + SP * sizeof (int); break; \
47 case FP_REGNUM: \
48 addr = blockend + FP * sizeof (int); break; \
49 case PS_REGNUM: \
50 addr = blockend + 12 * sizeof (int); break; \
51 case FPS_REGNUM: \
52 addr = 108; break; \
53 case FP0_REGNUM + 0: case FP0_REGNUM + 1: \
54 case FP0_REGNUM + 2: case FP0_REGNUM + 3: \
55 case FP0_REGNUM + 4: case FP0_REGNUM + 5: \
56 case FP0_REGNUM + 6: case FP0_REGNUM + 7: \
57 addr = 76 + (regno - FP0_REGNUM) * sizeof (float); break; \
58 case LP0_REGNUM + 0: case LP0_REGNUM + 1: \
59 case LP0_REGNUM + 2: case LP0_REGNUM + 3: \
60 addr = 76 + (regno - LP0_REGNUM) * sizeof (double); break; \
61 default: \
62 printf ("bad argument to REGISTER_U_ADDR %d\n", regno); \
63 abort (); \
64 } \
65}
This page took 0.052416 seconds and 4 git commands to generate.