]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/i960/tm-nindy960.h
import gdb-1999-07-07 post reformat
[thirdparty/binutils-gdb.git] / gdb / config / i960 / tm-nindy960.h
CommitLineData
c906108c
SS
1/* Parameters for Intel 960 running NINDY 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__
30struct frame_info;
31#endif
32
33/* Override the standard gdb prompt when compiled for this target. */
34
35#define DEFAULT_PROMPT "(gdb960) "
36
37/* Additional command line options accepted by nindy gdb's, for handling
38 the remote-nindy.c interface. These should really be target-specific
39 rather than architecture-specific. */
40
41extern int nindy_old_protocol; /* nonzero if old NINDY serial protocol */
42extern int nindy_initial_brk; /* Send a BREAK to reset board first */
43extern char *nindy_ttyname; /* Name of serial port to talk to nindy */
44
45#define ADDITIONAL_OPTIONS \
46 {"O", no_argument, &nindy_old_protocol, 1}, \
47 {"brk", no_argument, &nindy_initial_brk, 1}, \
c5aa993b 48 {"ser", required_argument, 0, 1004}, /* 1004 is magic cookie for ADDL_CASES */
c906108c
SS
49
50#define ADDITIONAL_OPTION_CASES \
51 case 1004: /* -ser option: remote nindy auto-start */ \
52 nindy_ttyname = optarg; \
53 break;
54
55#define ADDITIONAL_OPTION_HELP \
56 "\
57 -O Use old protocol to talk to a Nindy target\n\
58 -brk Send a break to a Nindy target to reset it.\n\
59 -ser SERIAL Open remote Nindy session to SERIAL port.\n\
60"
61
62/* If specified on the command line, open tty for talking to nindy,
63 and download the executable file if one was specified. */
64
65#define ADDITIONAL_OPTION_HANDLER \
66 if (!SET_TOP_LEVEL () && nindy_ttyname) { \
67 nindy_open (nindy_ttyname, !batch); \
68 if (!SET_TOP_LEVEL () && execarg) { \
69 target_load (execarg, !batch); \
70 } \
71 }
72
73/* If configured for i960 target, we take control before main loop
74 and demand that we configure for a nindy target. */
75
76#define BEFORE_MAIN_LOOP_HOOK \
77 nindy_before_main_loop();
78
79extern void
c5aa993b 80 nindy_before_main_loop (); /* In remote-nindy.c */
c906108c
SS
81
82/* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one
83 and has no caller.
84
85 On the i960, each various target system type defines FRAME_CHAIN_VALID,
86 since it differs between NINDY and VxWorks, the two currently supported
87 targets types. */
88
89extern int nindy_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
90#define FRAME_CHAIN_VALID(chain, thisframe) nindy_frame_chain_valid (chain, thisframe)
91
92extern int
c5aa993b 93 nindy_frame_chain_valid (); /* See nindy-tdep.c */
c906108c
SS
94
95/* Sequence of bytes for breakpoint instruction */
96
97#define BREAKPOINT {0x00, 0x3e, 0x00, 0x66}
98
99/* Amount ip must be decremented by after a breakpoint.
100 * This is often the number of bytes in BREAKPOINT but not always.
101 */
102
103#define DECR_PC_AFTER_BREAK 0
104
105#undef REGISTER_CONVERT_TO_VIRTUAL
106#undef REGISTER_CONVERT_TO_RAW
107#undef REGISTER_CONVERTIBLE