Remove definition of EM_MIPS_RS4_BE. The constant was never in active use
[deliverable/binutils-gdb.git] / gdb / sparcl-tdep.c
index 20675e25434b5569e620be17f6ac6092648b7e93..a910d0c7cde124d963f88d5bbd9722a07c2bb6d3 100644 (file)
@@ -1,5 +1,6 @@
 /* Target dependent code for the Fujitsu SPARClite for GDB, the GNU debugger.
-   Copyright 1994, 1995, 1996, 1999  Free Software Foundation, Inc.
+   Copyright 1994, 1995, 1996, 1998, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -23,6 +24,7 @@
 #include "breakpoint.h"
 #include "target.h"
 #include "serial.h"
+#include "regcache.h"
 #include <sys/types.h>
 
 #if (!defined(__GO32__) && !defined(_WIN32)) || defined(__CYGWIN32__)
@@ -411,9 +413,9 @@ sparclite_open (char *name, int from_tty)
   unpush_target (&sparclite_ops);
 
   if (remote_target_name)
-    free (remote_target_name);
+    xfree (remote_target_name);
 
-  remote_target_name = strsave (name);
+  remote_target_name = xstrdup (name);
 
   /* We need a 'serial' or 'udp' keyword to disambiguate host:port, which can
      mean either a serial port on a terminal server, or the IP address of a
@@ -527,13 +529,10 @@ sparclite_close (int quitting)
 #define LOAD_ADDRESS 0x40000000
 
 static void
-download (target_name, args, from_tty, write_routine, start_routine)
-     char *target_name;
-     char *args;
-     int from_tty;
-     void (*write_routine) (bfd * from_bfd, asection * from_sec,
-                           file_ptr from_addr, bfd_vma to_addr, int len);
-     void (*start_routine) (bfd_vma entry);
+download (char *target_name, char *args, int from_tty,
+         void (*write_routine) (bfd *from_bfd, asection *from_sec,
+                                file_ptr from_addr, bfd_vma to_addr, int len),
+         void (*start_routine) (bfd_vma entry))
 {
   struct cleanup *old_chain;
   asection *section;
@@ -839,7 +838,7 @@ sparclite_download (char *filename, int from_tty)
     download (remote_target_name, filename, from_tty, sparclite_udp_write,
              sparclite_udp_start);
 #else
-    abort ();                  /* sparclite_open should prevent this! */
+    internal_error (__FILE__, __LINE__, "failed internal consistency check");                  /* sparclite_open should prevent this! */
 #endif
   else
     download (remote_target_name, filename, from_tty, sparclite_serial_write,
This page took 0.023798 seconds and 4 git commands to generate.