* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[deliverable/binutils-gdb.git] / gdb / config / i960 / tm-nindy960.h
CommitLineData
5076de82
FF
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
5This file is part of GDB.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
6c9638b4 19Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
5076de82
FF
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__
29struct frame_info;
30#endif
31
5076de82
FF
32/* Override the standard gdb prompt when compiled for this target. */
33
34#define DEFAULT_PROMPT "(gdb960) "
35
36/* Additional command line options accepted by nindy gdb's, for handling
37 the remote-nindy.c interface. These should really be target-specific
38 rather than architecture-specific. */
39
40extern int nindy_old_protocol; /* nonzero if old NINDY serial protocol */
41extern int nindy_initial_brk; /* Send a BREAK to reset board first */
42extern char *nindy_ttyname; /* Name of serial port to talk to nindy */
43
44#define ADDITIONAL_OPTIONS \
45 {"O", no_argument, &nindy_old_protocol, 1}, \
46 {"brk", no_argument, &nindy_initial_brk, 1}, \
47 {"ser", required_argument, 0, 1004}, /* 1004 is magic cookie for ADDL_CASES */
48
49#define ADDITIONAL_OPTION_CASES \
50 case 1004: /* -ser option: remote nindy auto-start */ \
51 nindy_ttyname = optarg; \
52 break;
53
54#define ADDITIONAL_OPTION_HELP \
55 "\
56 -O Use old protocol to talk to a Nindy target\n\
57 -brk Send a break to a Nindy target to reset it.\n\
58 -ser SERIAL Open remote Nindy session to SERIAL port.\n\
59"
60
61/* If specified on the command line, open tty for talking to nindy,
62 and download the executable file if one was specified. */
63
64#define ADDITIONAL_OPTION_HANDLER \
9748446f 65 if (!SET_TOP_LEVEL () && nindy_ttyname) { \
5076de82 66 nindy_open (nindy_ttyname, !batch); \
9748446f 67 if (!SET_TOP_LEVEL () && execarg) { \
5076de82
FF
68 target_load (execarg, !batch); \
69 } \
70 }
71
72/* If configured for i960 target, we take control before main loop
73 and demand that we configure for a nindy target. */
74
75#define BEFORE_MAIN_LOOP_HOOK \
76 nindy_before_main_loop();
77
78extern void
79nindy_before_main_loop(); /* In remote-nindy.c */
80
5076de82
FF
81/* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one
82 and has no caller.
83
84 On the i960, each various target system type defines FRAME_CHAIN_VALID,
85 since it differs between NINDY and VxWorks, the two currently supported
86 targets types. */
87
b6960094
AC
88extern int nindy_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
89#define FRAME_CHAIN_VALID(chain, thisframe) nindy_frame_chain_valid (chain, thisframe)
5076de82
FF
90
91extern int
92nindy_frame_chain_valid(); /* See nindy-tdep.c */
93
94/* Sequence of bytes for breakpoint instruction */
95
96#define BREAKPOINT {0x00, 0x3e, 0x00, 0x66}
97
98/* Amount ip must be decremented by after a breakpoint.
99 * This is often the number of bytes in BREAKPOINT but not always.
100 */
101
102#define DECR_PC_AFTER_BREAK 0
449abd89
SG
103
104#undef REGISTER_CONVERT_TO_VIRTUAL
105#undef REGISTER_CONVERT_TO_RAW
106#undef REGISTER_CONVERTIBLE
This page took 0.246905 seconds and 4 git commands to generate.