2003-03-01 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / sparclet-rom.c
index ebb249ca6ab97da0bc91dcd2feb994660acbaf95..fa2ca1ef53a41e076c7ceb8467ccb37e1d2208ca 100644 (file)
@@ -1,5 +1,7 @@
 /* Remote target glue for the SPARC Sparclet ROM monitor.
-   Copyright 1995, 1996 Free Software Foundation, Inc.
+
+   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -27,6 +29,7 @@
 #include "srec.h"
 #include "symtab.h"
 #include "symfile.h"           /* for generic_load */
+#include "regcache.h"
 #include <time.h>
 
 extern void report_transfer_performance (unsigned long, time_t, time_t);
@@ -97,20 +100,13 @@ static char *sparclet_regnames[] = {
    actually do anything, GDB will request the registers individually.  */
 
 static void
-sparclet_supply_register (regname, regnamelen, val, vallen)
-     char *regname;
-     int regnamelen;
-     char *val;
-     int vallen;
+sparclet_supply_register (char *regname, int regnamelen, char *val, int vallen)
 {
   return;
 }
 
 static void
-sparclet_load (desc, file, hashmark)
-     serial_t desc;
-     char *file;
-     int hashmark;
+sparclet_load (struct serial *desc, char *file, int hashmark)
 {
   bfd *abfd;
   asection *s;
@@ -178,7 +174,7 @@ sparclet_load (desc, file, hashmark)
 
            bfd_get_section_contents (abfd, s, buf, i, numbytes);
 
-           SERIAL_WRITE (desc, buf, numbytes);
+           serial_write (desc, buf, numbytes);
 
            if (hashmark)
              {
@@ -209,7 +205,7 @@ sparclet_load (desc, file, hashmark)
   pop_target ();
   push_remote_target (monitor_get_dev_name (), 1);
 
-  return_to_top_level (RETURN_QUIT);
+  throw_exception (RETURN_QUIT);
 }
 
 /* Define the monitor command strings. Since these are passed directly
@@ -286,15 +282,13 @@ init_sparclet_cmds (void)
 };
 
 static void
-sparclet_open (args, from_tty)
-     char *args;
-     int from_tty;
+sparclet_open (char *args, int from_tty)
 {
   monitor_open (args, &sparclet_cmds, from_tty);
 }
 
 void
-_initialize_sparclet ()
+_initialize_sparclet (void)
 {
   int i;
   init_sparclet_cmds ();
This page took 0.024613 seconds and 4 git commands to generate.