Update comment for struct type's length field, introduce type_length_units
[deliverable/binutils-gdb.git] / gdb / ppcbug-rom.c
index c9b3e71c2fea3096e9d4fc8b74c0ad7c2de13cdb..b1e22ccb29bae9ac21a5ac5d3a07b8730619b2a1 100644 (file)
@@ -1,7 +1,6 @@
 /* Remote debugging interface for PPCbug (PowerPC) Rom monitor
    for GDB, the GNU debugger.
-   Copyright (C) 1995, 1998, 1999, 2000, 2001, 2007
-   Free Software Foundation, Inc.
+   Copyright (C) 1995-2015 Free Software Foundation, Inc.
 
    Written by Stu Grossman of Cygnus Support
 
@@ -9,7 +8,7 @@
 
    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
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
@@ -18,9 +17,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., 51 Franklin Street, Fifth Floor,
-   Boston, MA 02110-1301, USA.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
 #include "gdbcore.h"
@@ -30,7 +27,8 @@
 #include "regcache.h"
 
 static void
-ppcbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
+ppcbug_supply_register (struct regcache *regcache, char *regname,
+                       int regnamelen, char *val, int vallen)
 {
   int regno = 0;
 
@@ -92,14 +90,14 @@ ppcbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
       return;
     }
 
-  monitor_supply_register (regno, val);
+  monitor_supply_register (regcache, regno, val);
 }
 
 /*
- * This array of registers needs to match the indexes used by GDB. The
+ * This array of registers needs to match the indexes used by GDB.  The
  * whole reason this exists is because the various ROM monitors use
  * different names than GDB does, and don't support all the
- * registers either. So, typing "info reg sp" becomes an "A7".
+ * registers either.  So, typing "info reg sp" becomes an "A7".
  */
 
 static char *ppcbug_regnames[] =
@@ -119,9 +117,9 @@ static char *ppcbug_regnames[] =
 };
 
 /*
- * Define the monitor command strings. Since these are passed directly
+ * Define the monitor command strings.  Since these are passed directly
  * through to a printf style function, we need can include formatting
- * strings. We also need a CR or LF on the end.
+ * strings.  We also need a CR or LF on the end.
  */
 
 static struct target_ops ppcbug_ops0;
@@ -166,10 +164,10 @@ init_ppc_cmds (char *LOAD_CMD,
   OPS->getreg.resp_delim = "=";        /* getreg.resp_delim */
   OPS->getreg.term = NULL;     /* getreg.term */
   OPS->getreg.term_cmd = NULL; /* getreg.term_cmd */
-  OPS->register_pattern = "\\(\\w+\\) +=\\([0-9a-fA-F]+\\b\\)";                /* register_pattern */
+                               /* register_pattern */
+  OPS->register_pattern = "\\(\\w+\\) +=\\([0-9a-fA-F]+\\b\\)";
   OPS->supply_register = ppcbug_supply_register;
   OPS->dump_registers = "rd\r";        /* dump all registers */
-  OPS->load_routine = NULL;    /* load_routine (defaults to SRECs) */
   OPS->load = LOAD_CMD;                /* download command */
   OPS->loadresp = NULL;                /* load response */
   OPS->prompt = "PPC1-Bug>";   /* monitor command prompt */
@@ -186,13 +184,13 @@ static struct monitor_ops ppcbug_cmds0;
 static struct monitor_ops ppcbug_cmds1;
 
 static void
-ppcbug_open0 (char *args, int from_tty)
+ppcbug_open0 (const char *args, int from_tty)
 {
   monitor_open (args, &ppcbug_cmds0, from_tty);
 }
 
 static void
-ppcbug_open1 (char *args, int from_tty)
+ppcbug_open1 (const char *args, int from_tty)
 {
   monitor_open (args, &ppcbug_cmds1, from_tty);
 }
This page took 0.026606 seconds and 4 git commands to generate.