Thu Jul 25 12:08:09 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / rom68k-rom.c
index 220a049c4b64b4f908cdffe88359a5d695a0e020..208d9aa0762cff79babf9fd8b07c5661958ad970 100644 (file)
@@ -15,7 +15,7 @@ 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.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "gdbcore.h"
@@ -23,7 +23,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "monitor.h"
 #include "serial.h"
 
-static void rom68k_open PARAMS ((char *, int));
+static void rom68k_open PARAMS ((char *args, int from_tty));
 
 static void
 rom68k_supply_register (regname, regnamelen, val, vallen)
@@ -39,40 +39,36 @@ rom68k_supply_register (regname, regnamelen, val, vallen)
   regno = -1;
 
   if (regnamelen == 2)
-    {
-      switch (regname[0])
-       {
-       case 'S':
-         if (regname[1] == 'R')
-           regno = PS_REGNUM;
+    switch (regname[0])
+      {
+      case 'S':
+       if (regname[1] == 'R')
+         regno = PS_REGNUM;
+       break;
+      case 'P':
+       if (regname[1] == 'C')
+         regno = PC_REGNUM;
+       break;
+      case 'D':
+       if (regname[1] != 'R')
          break;
-       case 'P':
-         if (regname[1] == 'C')
-           regno = PC_REGNUM;
+       regno = D0_REGNUM;
+       numregs = 8;
+       break;
+      case 'A':
+       if (regname[1] != 'R')
          break;
-       case 'D':
-         if (regname[1] != 'R')
-           break;
-         regno = D0_REGNUM;
-         numregs = 8;
-         break;
-       case 'A':
-         if (regname[1] != 'R')
-           break;
-         regno = A0_REGNUM;
-         numregs = 7;
-         break;
-       }
-    }
+       regno = A0_REGNUM;
+       numregs = 7;
+       break;
+      }
   else if (regnamelen == 3)
-    {
-      switch (regname[0])
-       {
-       case 'I':
-         if (regname[1] == 'S' && regname[2] == 'P')
-           regno = SP_REGNUM;
-       }
-    }
+    switch (regname[0])
+      {
+      case 'I':
+       if (regname[1] == 'S' && regname[2] == 'P')
+         regno = SP_REGNUM;
+      }
 
   if (regno >= 0)
     while (numregs-- > 0)
@@ -95,9 +91,6 @@ static char *rom68k_regnames[NUM_REGS] = {
 
 static struct target_ops rom68k_ops;
 
-static char *rom68k_loadtypes[] = {"srec", NULL};
-static char *rom68k_loadprotos[] = {"none", NULL};
-
 static char *rom68k_inits[] = {".\r\r", NULL}; /* Exits pm/pr & download cmds */
 
 static struct monitor_ops rom68k_cmds =
@@ -145,15 +138,13 @@ static struct monitor_ops rom68k_cmds =
                                /* register_pattern */
   "\\(\\w+\\)=\\([0-9a-fA-F]+\\( +[0-9a-fA-F]+\\b\\)*\\)",
   rom68k_supply_register,      /* supply_register */
+  NULL,                                /* load_routine (defaults to SRECs) */
   "dc\r",                      /* download command */
   "Waiting for S-records from host... ", /* Load response */
-  "ROM68K :->",                        /* monitor command prompt */
-  "=",                         /* end-of-command delimitor */
+  "ROM68K :-> ",               /* monitor command prompt */
+  "\r",                                /* end-of-line terminator */
   ".\r",                       /* optional command terminator */
   &rom68k_ops,                 /* target operations */
-  rom68k_loadtypes,            /* loadtypes */
-  rom68k_loadprotos,           /* loadprotos */
-  "9600",                      /* supported baud rates */
   SERIAL_1_STOPBITS,           /* number of stop bits */
   rom68k_regnames,             /* registers names */
   MONITOR_OPS_MAGIC            /* magic */
@@ -179,8 +170,4 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
   rom68k_ops.to_open = rom68k_open;
 
   add_target (&rom68k_ops);
-
-  /* This is the default, since it's the only baud rate supported by
-     the hardware.  */
-  baud_rate = 9600;
 }
This page took 0.024489 seconds and 4 git commands to generate.