Commit | Line | Data |
---|---|---|
35f5886e FF |
1 | /* Macro definitions for GDB on a Commodore Amiga running SVR4 (amix). |
2 | Copyright (C) 1991, Free Software Foundation, Inc. | |
3 | Written by Fred Fish at Cygnus Support (fnf@cygint) | |
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 | /* All Amiga's (so far) running UNIX have come standard with the floating | |
22 | point coprocessor. */ | |
23 | ||
24 | #define HAVE_68881 /* Amiga has floating point coprocessor */ | |
25 | ||
26 | /* Sequence of bytes for breakpoint instruction. | |
27 | This is a TRAP instruction. The last 4 bits (0x1 below) is the | |
28 | vector. */ | |
29 | ||
30 | #define BREAKPOINT {0x4e, 0x41 } /* Trap using vector 0x1 */ | |
31 | ||
32 | /* How much to decrement the PC after a trap. Depends on kernel. */ | |
33 | ||
34 | #define DECR_PC_AFTER_BREAK 0 /* No decrement required */ | |
35 | ||
36 | ||
37 | #include "tm-68k.h" | |
38 | #include "tm-svr4.h" | |
39 | ||
40 | /* Address of end of stack space. (actually one byte past it). | |
41 | This value is typically very OS dependent. | |
42 | FIXME: Check to see if SVR4 offers some machine independent way | |
43 | of discovering this value and use it if so, and if we need it. */ | |
44 | ||
45 | /* #define STACK_END_ADDR 0xc0800000 */ | |
46 | ||
47 | /* Use the alternate method of avoiding running up off the end of | |
48 | the frame chain or following frames back into the startup code. | |
49 | See the comments in blockframe.c */ | |
50 | ||
51 | #undef FRAME_CHAIN_VALID | |
52 | #define FRAME_CHAIN_VALID(chain, thisframe) \ | |
53 | (chain != 0 \ | |
54 | && !(inside_main_scope ((thisframe)->pc)) \ | |
55 | && !(inside_entry_scope ((thisframe)->pc))) | |
56 |