| 1 | /* Host definitions for GDB running on a 29k NYU Ultracomputer |
| 2 | Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc. |
| 3 | Contributed by David Wood (wood@lab.ultra.nyu.edu). |
| 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 20 | |
| 21 | /* Here at NYU we have what we call an ULTRA3 PE board. So |
| 22 | ifdefs for ULTRA3 are my doing. At this point in time, |
| 23 | I don't know of any other Unixi running on the 29k. */ |
| 24 | |
| 25 | #define HOST_BYTE_ORDER BIG_ENDIAN |
| 26 | |
| 27 | #define HAVE_WAIT_STRUCT |
| 28 | |
| 29 | #ifndef L_SET |
| 30 | # define L_SET 0 /* set the seek pointer */ |
| 31 | # define L_INCR 1 /* increment the seek pointer */ |
| 32 | # define L_XTND 2 /* extend the file size */ |
| 33 | #endif |
| 34 | |
| 35 | #ifndef O_RDONLY |
| 36 | # define O_RDONLY 0 |
| 37 | # define O_WRONLY 1 |
| 38 | # define O_RDWR 2 |
| 39 | #endif |
| 40 | |
| 41 | #ifndef F_OK |
| 42 | # define R_OK 4 |
| 43 | # define W_OK 2 |
| 44 | # define X_OK 1 |
| 45 | # define F_OK 0 |
| 46 | #endif |
| 47 | |
| 48 | /* Get rid of any system-imposed stack limit if possible */ |
| 49 | |
| 50 | #define SET_STACK_LIMIT_HUGE |
| 51 | |
| 52 | /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ |
| 53 | #define FETCH_INFERIOR_REGISTERS |
| 54 | |
| 55 | /* If we ever *do* end up using the standard fetch_inferior_registers, |
| 56 | this is the right value for U_REGS_OFFSET. */ |
| 57 | #define U_REGS_OFFSET 0 |
| 58 | |
| 59 | /* System doesn't provide siginterrupt(). */ |
| 60 | #define NO_SIGINTERRUPT |
| 61 | |
| 62 | /* System uses a `short' to hold a process group ID. */ |
| 63 | #define SHORT_PGRP |