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