+Wed Oct 9 18:02:48 1996 Stan Shebs <shebs@andros.cygnus.com>
+
+ * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
+ VR4300 target.
+ (ddb_ops, pmon_ops): Fix the documentation strings.
+
Wed Oct 9 07:42:44 1996 Stu Grossman (grossman@critters.cygnus.com)
* Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>
- * remote-mips.c (pmon_wait): CAIRO PMON does not require forced
+ * remote-mips.c (pmon_wait): DDB PMON does not require forced
re-entry back into debug mode.
Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
* remote-mips.c (mips_load): Ensure that the PC is explicitly
- loaded after a load to a CAIRO PMON system.
+ loaded after a load to a DDB PMON system.
Fri Sep 13 12:02:39 1996 Fred Fish <fnf@cygnus.com>
Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>
- * remote-mips.c: Provide support for CAIRO target board.
- (cairo_open, cairo_ops): Added.
- (mips_monitor_type): MON_CAIRO Added.
+ * remote-mips.c: Provide support for DDBVR4300 target board.
+ (ddb_open, ddb_ops): Added.
+ (mips_monitor_type): MON_DDB Added.
(mips_enter_debug, mips_exit_debug, mips_initialize,
mips_fetch_registers, common_breakpoint, mips_load,
_initialize_remote_mips): Updated.
static void pmon_open PARAMS ((char *name, int from_tty));
-static void cairo_open PARAMS ((char *name, int from_tty));
+static void ddb_open PARAMS ((char *name, int from_tty));
static void mips_close PARAMS ((int quitting));
/* Forward declarations. */
extern struct target_ops mips_ops;
extern struct target_ops pmon_ops;
-extern struct target_ops cairo_ops;
+extern struct target_ops ddb_ops;
\f
/* The MIPS remote debugging interface is built on top of a simple
packet protocol. Each packet is organized as follows:
MON_IDT,
/* PMON monitor being used: */
MON_PMON, /* 3.0.83 [COGENT,EB,FP,NET] Algorithmics Ltd. Nov 9 1995 17:19:50 */
- MON_CAIRO, /* 2.7.473 [Cairo ,EL,FP,NET] Risq Modular Systems, Thu Jun 6 09:28:40 PDT 1996 */
+ MON_DDB, /* 2.7.473 [DDBVR4300,EL,FP,NET] Risq Modular Systems, Thu Jun 6 09:28:40 PDT 1996 */
/* Last and unused value, for sizing vectors, etc. */
MON_LAST
};
mips_send_seq = 0;
mips_receive_seq = 0;
- if (mips_monitor == MON_PMON || mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_PMON || mips_monitor == MON_DDB)
mips_send_command ("debug\015", 0);
else /* assume IDT monitor by default */
mips_send_command ("db tty0\015", 0);
mips_receive_header will eat up a reasonable number of characters
whilst looking for the SYN, however this avoids the "garbage"
being displayed to the user. */
- if (mips_monitor == MON_PMON || mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_PMON || mips_monitor == MON_DDB)
mips_expect ("\015");
{
{
int err;
- if (mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_DDB)
{
- /* The Cairo version of PMON exits immediately, so we do not get
+ /* The Ddb version of PMON exits immediately, so we do not get
a reply to this command: */
mips_request ('x', (unsigned int) 0, (unsigned int) 0, NULL,
mips_receive_wait, NULL);
if (mips_monitor == MON_PMON && !mips_expect ("Exiting remote debug mode"))
return -1;
- if (mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_DDB)
{
if (!mips_expect ("\012"))
return -1;
/* Force the system into the monitor. After this we *should* be at
the mips_monitor_prompt. */
- if (mips_monitor == MON_PMON || mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_PMON || mips_monitor == MON_DDB)
j = 0; /* start by checking if we are already at the prompt */
else
j = 1; /* start by sending a break */
break;
case 3: /* Then, try escaping from download */
{
- if (mips_monitor == MON_PMON || mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_PMON || mips_monitor == MON_DDB)
{
char tbuff[7];
break;
}
- if (mips_monitor == MON_PMON || mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_PMON || mips_monitor == MON_DDB)
{
/* Ensure the correct target state: */
mips_send_command ("set regsize 64\015", -1);
}
static void
-cairo_open (name, from_tty)
+ddb_open (name, from_tty)
char *name;
int from_tty;
{
/* The PMON monitor has a prompt different from the default
"TARGET_MONITOR_PROMPT": */
mips_monitor_prompt = "NEC010>";
- mips_monitor = MON_CAIRO;
- common_open (&cairo_ops, name, from_tty);
+ mips_monitor = MON_DDB;
+ common_open (&ddb_ops, name, from_tty);
}
/* Close a connection to the remote board. */
seems to be caused by a check on the number of arguments, and the
command length, within the monitor causing it to echo the command
as a bad packet. */
- if (mips_monitor != MON_CAIRO)
+ if (mips_monitor != MON_DDB)
{
mips_exit_debug ();
mips_enter_debug ();
/* Unfortunately the PMON version in the Vr4300 board has been
compiled without the 64bit register access commands. This
means we cannot get hold of the full register width. */
- if (mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_DDB)
val = (unsigned)mips_request ('t', (unsigned int) mips_map_regno (regno),
(unsigned int) 0, &err, mips_receive_wait, NULL);
else
if (rerrflg != 0)
{
- /* Cairo returns "0x0 b 0x16 0x0\000", whereas
+ /* Ddb returns "0x0 b 0x16 0x0\000", whereas
Cogent returns "0x0 b 0xffffffff 0x16\000": */
- if (mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_DDB)
rresponse = rerrflg;
if (rresponse != 22) /* invalid argument */
fprintf_unfiltered (stderr, "common_breakpoint (0x%x): Got error: 0x%x\n",
if (mips_exit_debug ())
error ("mips_load: Couldn't get into monitor mode.");
- if (mips_monitor == MON_PMON || mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_PMON || mips_monitor == MON_DDB)
pmon_load_fast (file);
else
mips_load_srec (file);
mips_initialize ();
/* Finally, make the PC point at the start address */
- if (mips_monitor == MON_CAIRO)
+ if (mips_monitor == MON_DDB)
{
- /* Work around problem where CAIRO monitor does not update the
+ /* Work around problem where DDB monitor does not update the
PC after a load. The following ensures that the write_pc()
WILL update the PC value: */
register_valid[PC_REGNUM] = 0;
"pmon", /* to_shortname */
"Remote MIPS debugging over serial line", /* to_longname */
"\
-Debug a board using the PMON MIPS remote debugging protocol over a serial\n\
-line. The argument is the device it is connected to or, if it contains a\n\
+Debug a board using the PMON MIPS remote debugging protocol over a serial line.\n\
+The argument is the device it is connected to or, if it contains a\n\
colon, HOST:PORT to access a board over a network", /* to_doc */
pmon_open, /* to_open */
mips_close, /* to_close */
/* Another alternative target vector. This is a PMON system, but with
a different monitor prompt, aswell as some other operational
differences: */
-struct target_ops cairo_ops =
+struct target_ops ddb_ops =
{
- "cairo", /* to_shortname */
+ "ddb", /* to_shortname */
"Remote MIPS debugging over serial line", /* to_longname */
"\
-Debug a board using the PMON MIPS remote debugging protocol over a serial\n\
-line. The argument is the device it is connected to or, if it contains a\n\
+Debug a board using the DDBVR4300 (PMON) MIPS remote debugging protocol over a serial line.\n\
+The argument is the device it is connected to or, if it contains a\n\
colon, HOST:PORT to access a board over a network", /* to_doc */
- cairo_open, /* to_open */
+ ddb_open, /* to_open */
mips_close, /* to_close */
NULL, /* to_attach */
mips_detach, /* to_detach */
{
add_target (&mips_ops);
add_target (&pmon_ops);
- add_target (&cairo_ops);
+ add_target (&ddb_ops);
add_show_from_set (
add_set_cmd ("timeout", no_class, var_zinteger,