Commit | Line | Data |
---|---|---|
2e665cd3 DP |
1 | /* Parameters for Intel 960 running MON960 monitor, for GDB, the GNU debugger. |
2 | Copyright (C) 1990-1991 Free Software Foundation, Inc. | |
3 | Contributed by Intel Corporation and Cygnus Support. | |
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
20 | ||
21 | /***************************************************************************** | |
22 | * Definitions to target GDB to an i960 debugged over a serial line. | |
23 | ******************************************************************************/ | |
24 | ||
25 | #include "i960/tm-i960.h" | |
26 | ||
b6960094 AC |
27 | /* forward declarations */ |
28 | #ifdef __STDC__ | |
29 | struct frame_info; | |
30 | #endif | |
31 | ||
2e665cd3 DP |
32 | /* redefined from tm-i960.h */ |
33 | /* Number of machine registers */ | |
34 | #undef NUM_REGS | |
35 | #define NUM_REGS 40 | |
36 | ||
37 | /* Initializer for an array of names of registers. | |
38 | There should be NUM_REGS strings in this initializer. */ | |
39 | #undef REGISTER_NAMES | |
40 | #define REGISTER_NAMES { \ | |
41 | /* 0 */ "pfp", "sp", "rip", "r3", "r4", "r5", "r6", "r7", \ | |
42 | /* 8 */ "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",\ | |
43 | /* 16 */ "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7", \ | |
44 | /* 24 */ "g8", "g9", "g10", "g11", "g12", "g13", "g14", "fp", \ | |
45 | /* 32 */ "pc", "ac", "tc", "ip", "fp0", "fp1", "fp2", "fp3",\ | |
46 | } | |
47 | ||
2e665cd3 DP |
48 | /* Override the standard gdb prompt when compiled for this target. */ |
49 | ||
50 | #define DEFAULT_PROMPT "(gdb960) " | |
51 | ||
2e665cd3 DP |
52 | /* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one |
53 | and has no caller. | |
54 | ||
55 | On the i960, each various target system type defines FRAME_CHAIN_VALID, | |
56 | since it differs between Nindy, Mon960 and VxWorks, the currently supported | |
32b18604 | 57 | target types. */ |
2e665cd3 | 58 | |
b6960094 AC |
59 | extern int mon960_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *)); |
60 | #define FRAME_CHAIN_VALID(chain, thisframe) mon960_frame_chain_valid (chain, thisframe) | |
2e665cd3 DP |
61 | |
62 | /* Sequence of bytes for breakpoint instruction */ | |
63 | ||
64 | #define BREAKPOINT {0x00, 0x3e, 0x00, 0x66} | |
65 | ||
66 | /* Amount ip must be decremented by after a breakpoint. | |
67 | * This is often the number of bytes in BREAKPOINT but not always. | |
68 | */ | |
69 | ||
70 | #define DECR_PC_AFTER_BREAK 4 |