*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / remote-hms.c
index 834f5963dc0f5cd03f097e7c8023f31014cb4f6c..277261608f021896587dba0d02185b0c02813d2a 100644 (file)
@@ -1,5 +1,6 @@
-/* Remote debugging interface for Hitachi HMS Monitor Version 1.0
-   Copyright 1995,1999 Free Software Foundation, Inc.
+/* Remote debugging interface for Renesas HMS Monitor Version 1.0
+   Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2007
+   Free Software Foundation, Inc.
    Contributed by Cygnus Support.  Written by Steve Chamberlain
    (sac@cygnus.com).
 
 
    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., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
 
 #include "defs.h"
 #include "gdbcore.h"
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
+
+#define CCR_REGNUM 8
 
 static void hms_open (char *args, int from_tty);
 static void
@@ -62,9 +66,9 @@ hms_supply_register (char *regname, int regnamelen, char *val, int vallen)
  * registers either. So, typing "info reg sp" becomes a "r30".
  */
 
-static char *hms_regnames[NUM_REGS] =
+static char *hms_regnames[] =
 {
-  "R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7", "CCR", "PC"
+  "R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7", "CCR", "PC", "", "", "", ""
 };
 
 /*
@@ -117,7 +121,7 @@ init_hms_cmds (void)
   hms_cmds.getreg.term_cmd = "\003";   /* getreg.term_cmd */
   hms_cmds.dump_registers = "r\r";     /* dump_registers */
   hms_cmds.register_pattern = "\\(\\w+\\)=\\([0-9a-fA-F]+\\)"; /* register_pattern */
-  hms_cmds.supply_register = hms_supply_register;      /* supply_register */
+  hms_cmds.supply_register = hms_supply_register;
   hms_cmds.load_routine = NULL;        /* load_routine (defaults to SRECs) */
   hms_cmds.load = "tl\r";      /* download command */
   hms_cmds.loadresp = NULL;    /* load response */
@@ -138,6 +142,8 @@ hms_open (char *args, int from_tty)
 
 int write_dos_tick_delay;
 
+extern initialize_file_ftype _initialize_remote_hms; /* -Wmissing-prototypes */
+
 void
 _initialize_remote_hms (void)
 {
@@ -145,7 +151,7 @@ _initialize_remote_hms (void)
   init_monitor_ops (&hms_ops);
 
   hms_ops.to_shortname = "hms";
-  hms_ops.to_longname = "Hitachi Microsystems H8/300 debug monitor";
+  hms_ops.to_longname = "Renesas Microsystems H8/300 debug monitor";
   hms_ops.to_doc = "Debug via the HMS monitor.\n\
 Specify the serial device it is connected to (e.g. /dev/ttya).";
   hms_ops.to_open = hms_open;
This page took 0.025013 seconds and 4 git commands to generate.