| 1 | /* Parameters for execution on a Sun 4, for GDB, the GNU debugger. |
| 2 | Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc. |
| 3 | Contributed by Michael Tiemann (tiemann@mcc.com). |
| 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 | #define HOST_BYTE_ORDER BIG_ENDIAN |
| 22 | |
| 23 | /* Get rid of any system-imposed stack limit if possible. */ |
| 24 | |
| 25 | #define SET_STACK_LIMIT_HUGE |
| 26 | |
| 27 | /* Enable use of alternate code for Sun's format of core dump file. */ |
| 28 | |
| 29 | #define NEW_SUN_CORE |
| 30 | |
| 31 | /* Do implement the attach and detach commands. */ |
| 32 | |
| 33 | #define ATTACH_DETACH |
| 34 | |
| 35 | /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ |
| 36 | |
| 37 | #define FETCH_INFERIOR_REGISTERS |
| 38 | |
| 39 | /* Before storing, we need to read all the registers. */ |
| 40 | |
| 41 | #define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES) |
| 42 | |
| 43 | /* It does have a wait structure, and it might help things out . . . */ |
| 44 | |
| 45 | #define HAVE_WAIT_STRUCT |
| 46 | |
| 47 | /* Optimization for storing registers to the inferior. The hook |
| 48 | DO_DEFERRED_STORES |
| 49 | actually executes any deferred stores. It is called any time |
| 50 | we are going to proceed the child, or read its registers. |
| 51 | The hook CLEAR_DEFERRED_STORES is called when we want to throw |
| 52 | away the inferior process, e.g. when it dies or we kill it. |
| 53 | FIXME, this does not handle remote debugging cleanly. */ |
| 54 | |
| 55 | extern int deferred_stores; |
| 56 | #define DO_DEFERRED_STORES \ |
| 57 | if (deferred_stores) \ |
| 58 | store_inferior_registers (-2); |
| 59 | #define CLEAR_DEFERRED_STORES \ |
| 60 | deferred_stores = 0; |