0e67e93d660efa2020a1d9219148c840dcc751e6
1 /* Parameters for execution on a Sun 4, for GDB, the GNU debugger.
2 Copyright 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
3 Contributed by Michael Tiemann (tiemann@mcc.com)
5 This file is part of GDB.
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.
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.
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. */
21 #define HOST_BYTE_ORDER BIG_ENDIAN
23 /* Get rid of any system-imposed stack limit if possible. */
25 #define SET_STACK_LIMIT_HUGE
27 /* Enable use of alternate code for Sun's format of core dump file. */
31 /* Do implement the attach and detach commands. */
35 /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
37 #define FETCH_INFERIOR_REGISTERS
39 /* Before storing, we need to read all the registers. */
41 #define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES)
43 /* It does have a wait structure, and it might help things out . . . */
45 #define HAVE_WAIT_STRUCT
47 /* Optimization for storing registers to the inferior. The hook
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. */
55 extern int deferred_stores
;
56 extern int store_inferior_registers ();
57 #define DO_DEFERRED_STORES \
58 if (deferred_stores) \
59 store_inferior_registers (-2);
60 #define CLEAR_DEFERRED_STORES \