* config/tc-alpha.c (O_samegp): New.
[external/binutils.git] / gdb / config / i960 / tm-mon960.h
1 /* Parameters for Intel 960 running MON960 monitor, for GDB, the GNU debugger.
2    Copyright 1990, 1991, 1996, 1999, 2000 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,
20    Boston, MA 02111-1307, USA.  */
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 struct frame_info;
30
31 /* redefined from tm-i960.h */
32 /* Number of machine registers */
33 #undef NUM_REGS
34 #define NUM_REGS 40
35
36 /* Initializer for an array of names of registers.
37    There should be NUM_REGS strings in this initializer.  */
38 #undef REGISTER_NAMES
39 #define REGISTER_NAMES { \
40         /*  0 */ "pfp", "sp",  "rip", "r3",  "r4",  "r5",  "r6",  "r7", \
41         /*  8 */ "r8",  "r9",  "r10", "r11", "r12", "r13", "r14", "r15",\
42         /* 16 */ "g0",  "g1",  "g2",  "g3",  "g4",  "g5",  "g6",  "g7", \
43         /* 24 */ "g8",  "g9",  "g10", "g11", "g12", "g13", "g14", "fp", \
44         /* 32 */ "pc",  "ac",  "tc",  "ip",  "fp0", "fp1", "fp2", "fp3",\
45 }
46
47 /* Override the standard gdb prompt when compiled for this target.  */
48
49 #define DEFAULT_PROMPT  "(gdb960) "
50
51 /* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one
52    and has no caller.
53
54    On the i960, each various target system type defines FRAME_CHAIN_VALID,
55    since it differs between Nindy, Mon960 and VxWorks, the currently supported
56    target types.  */
57
58 extern int mon960_frame_chain_valid (CORE_ADDR, struct frame_info *);
59 #define FRAME_CHAIN_VALID(chain, thisframe) mon960_frame_chain_valid (chain, thisframe)
60
61 /* Sequence of bytes for breakpoint instruction */
62
63 #define BREAKPOINT {0x00, 0x3e, 0x00, 0x66}
64
65 /* Amount ip must be decremented by after a breakpoint.
66  * This is often the number of bytes in BREAKPOINT but not always.
67  */
68
69 #define DECR_PC_AFTER_BREAK 4