/* Remote debugging interface for EST-300 ICE, for GDB
- Copyright 1994 Free Software Foundation, Inc.
+ Copyright 1995 Free Software Foundation, Inc.
Contributed by Cygnus Support.
Written by Steve Chamberlain for Cygnus Support.
Re-written by Stu Grossman of Cygnus Support
- This file is part of GDB.
+This file is part of GDB.
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "defs.h"
#include "gdbcore.h"
static struct target_ops est_ops;
-static char *est_loadtypes[] = {"none", "srec", "default", NULL};
-static char *est_loadprotos[] = {"none", NULL};
-
static char *est_inits[] = {"he\r", /* Resets the prompt, and clears repeated cmds */
NULL};
est_inits, /* Init strings */
"go\r", /* continue command */
"sidr\r", /* single step */
+ "\003", /* ^C interrupts the program */
"sb %x\r", /* set a breakpoint */
"rb %x\r", /* clear a breakpoint */
"rb\r", /* clear all breakpoints */
"dr\r", /* dump_registers */
"\\(\\w+\\) = \\([0-9a-fA-F]+\\)", /* register_pattern */
est_supply_register, /* supply_register */
+ NULL, /* load_routine (defaults to SRECs) */
"dl\r", /* download command */
"+", /* load response */
">BKM>", /* monitor command prompt */
- NULL, /* end-of-command delimitor */
+ "\r", /* end-of-line terminator */
NULL, /* optional command terminator */
&est_ops, /* target operations */
- est_loadtypes, /* loadtypes */
- est_loadprotos, /* loadprotos */
- "9600", /* supported baud rates */
SERIAL_1_STOPBITS, /* number of stop bits */
est_regnames, /* registers names */
MONITOR_OPS_MAGIC /* magic */
};
-void
+static void
est_open(args, from_tty)
char *args;
int from_tty;