*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / sparclet-rom.c
index 937e57c4e168fe5c41d37edceab5672734749948..fa2ca1ef53a41e076c7ceb8467ccb37e1d2208ca 100644 (file)
@@ -1,6 +1,7 @@
 /* Remote target glue for the SPARC Sparclet ROM monitor.
-   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001
-   Free Software Foundation, Inc.
+
+   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -105,7 +106,7 @@ sparclet_supply_register (char *regname, int regnamelen, char *val, int vallen)
 }
 
 static void
-sparclet_load (serial_t desc, char *file, int hashmark)
+sparclet_load (struct serial *desc, char *file, int hashmark)
 {
   bfd *abfd;
   asection *s;
@@ -173,7 +174,7 @@ sparclet_load (serial_t desc, char *file, int hashmark)
 
            bfd_get_section_contents (abfd, s, buf, i, numbytes);
 
-           SERIAL_WRITE (desc, buf, numbytes);
+           serial_write (desc, buf, numbytes);
 
            if (hashmark)
              {
@@ -204,7 +205,7 @@ sparclet_load (serial_t desc, char *file, int 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
This page took 0.026842 seconds and 4 git commands to generate.