* mon960-rom.c: Cleanups and elimination of unused code,
[deliverable/binutils-gdb.git] / gdb / config / i960 / tm-mon960.h
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
27 /* redefined from tm-i960.h */
28 /* Number of machine registers */
29 #undef NUM_REGS
30 #define NUM_REGS 40
31
32 /* Initializer for an array of names of registers.
33 There should be NUM_REGS strings in this initializer. */
34 #undef REGISTER_NAMES
35 #define REGISTER_NAMES { \
36 /* 0 */ "pfp", "sp", "rip", "r3", "r4", "r5", "r6", "r7", \
37 /* 8 */ "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",\
38 /* 16 */ "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7", \
39 /* 24 */ "g8", "g9", "g10", "g11", "g12", "g13", "g14", "fp", \
40 /* 32 */ "pc", "ac", "tc", "ip", "fp0", "fp1", "fp2", "fp3",\
41 }
42
43 /* Override the standard gdb prompt when compiled for this target. */
44
45 #define DEFAULT_PROMPT "(gdb960) "
46
47 /* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one
48 and has no caller.
49
50 On the i960, each various target system type defines FRAME_CHAIN_VALID,
51 since it differs between Nindy, Mon960 and VxWorks, the currently supported
52 target types. */
53
54 #define FRAME_CHAIN_VALID(chain, thisframe) \
55 mon960_frame_chain_valid (chain, thisframe)
56
57 extern int mon960_frame_chain_valid(); /* See i960-tdep.c */
58
59 /* Sequence of bytes for breakpoint instruction */
60
61 #define BREAKPOINT {0x00, 0x3e, 0x00, 0x66}
62
63 /* Amount ip must be decremented by after a breakpoint.
64 * This is often the number of bytes in BREAKPOINT but not always.
65 */
66
67 #define DECR_PC_AFTER_BREAK 4
This page took 0.032147 seconds and 5 git commands to generate.