11220f5c0264423eb7fb226435591942f6c59a87
[binutils-gdb.git] / gdb / config / m88k / xm-dgux.h
1 /* Host-machine dependent parameters for Motorola 88000, for GDB.
2 Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1993, 1998
3 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 #include "m88k/xm-m88k.h"
23
24 #if !defined (USG)
25 #define USG 1
26 #endif
27
28 #include <sys/param.h>
29
30 #ifdef __GNUC__
31 #define memcpy __builtin_memcpy
32 /* gcc doesn't have this, at least not gcc 1.92. */
33 /* #define memset __builtin_memset */
34 #define strcmp __builtin_strcmp
35 #endif
36
37 #define x_foff _x_x._x_offset
38 #define x_fname _x_name
39 #define USER ptrace_user
40 #define _BSD_WAIT_FLAVOR
41
42 #define HAVE_TERMIO
43
44 #ifndef USIZE
45 #define USIZE 2048
46 #endif
47 #define NBPG NBPC
48 #define UPAGES USIZE
49
50 /* This is the amount to subtract from u.u_ar0
51 to get the offset in the core file of the register values. */
52
53 /* Since registers r0 through r31 are stored directly in the struct ptrace_user,
54 (for m88k BCS)
55 the ptrace_user offsets are sufficient and KERNEL_U_ADDRESS can be 0 */
56
57 #define KERNEL_U_ADDR 0