Remove locally duplicated code for calling functions in the inferior. The
[deliverable/binutils-gdb.git] / gdb / tm-sun3.h
1 /* Parameters for execution on a Sun, for GDB, the GNU debugger.
2 Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 #define HAVE_68881
21
22 /* TARGET_SUN3 might be a more logical name, but that's used by
23 ../include/target.h (included by ../include/a.out.gnu.h). */
24 #define GDB_TARGET_IS_SUN3 1
25
26 /* Define this if the C compiler puts an underscore at the front
27 of external names before giving them to the linker. */
28
29 #define NAMES_HAVE_UNDERSCORE
30
31 /* Debugger information will be in DBX format. */
32
33 #define READ_DBX_FORMAT
34
35 /* Address of the end of stack space. We get this from the system
36 include files. */
37
38 #include <sys/types.h>
39 #include <machine/vmparam.h>
40 #define STACK_END_ADDR USRSTACK
41
42 #include "tm-68k.h"
43 SWAP_TARGET_AND_HOST (temp, 4); \
44 bcopy ((char *)&temp, (char *)(dummyname) + 20, 4); \
45 temp = fun; \
46 SWAP_TARGET_AND_HOST (temp, 4); \
47 bcopy ((char *)&temp, (char *)(dummyname) + 14, 4); }
This page took 0.032759 seconds and 4 git commands to generate.