Fix whitespace problem in my most recent entry.
[deliverable/binutils-gdb.git] / gdb / remote-udi.c
index 7127ca61ad60dc86717a01f121a0d38de8fb21a9..14a7345715fedda00dc72310941005eb258dc44e 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote debugging interface for AMD 29k interfaced via UDI, for GDB.
-   Copyright 1990, 1992, 1995, 2000 Free Software Foundation, Inc.
+   Copyright 1990, 1992, 1995, 2000, 2001 Free Software Foundation, Inc.
    Written by Daniel Mann.  Contributed by AMD.
 
    This file is part of GDB.
 #include "defs.h"
 #include "frame.h"
 #include "inferior.h"
-#include "gdb_wait.h"
 #include "value.h"
 #include <ctype.h>
 #include <fcntl.h>
-#include <signal.h>
 #include <errno.h>
 #include "gdb_string.h"
 #include "terminal.h"
@@ -48,6 +46,7 @@
 #include "gdbcmd.h"
 #include "bfd.h"
 #include "gdbcore.h"           /* For download function */
+#include "regcache.h"
 
 /* access the register store directly, without going through
    the normal handler functions. This avoids an extra data copy.  */
@@ -131,7 +130,7 @@ udi_create_inferior (char *execfile, char *args, char **env)
   if (execfile)
     {
       if (prog_name != NULL)
-       free (prog_name);
+       xfree (prog_name);
       prog_name = savestring (execfile, strlen (execfile));
     }
   else if (entry.Offset)
@@ -229,12 +228,12 @@ udi_open (char *name, int from_tty)
     bkpt_table[cnt].Type = 0;
 
   if (udi_config_id)
-    free (udi_config_id);
+    xfree (udi_config_id);
 
   if (!name)
     error ("Usage: target udi config_id, where config_id appears in udi_soc file");
 
-  udi_config_id = strdup (strtok (name, " \t"));
+  udi_config_id = xstrdup (strtok (name, " \t"));
 
   if (UDIConnect (udi_config_id, &udi_session_id))
     /* FIXME: Should set udi_session_id to -1 here.  */
@@ -922,7 +921,9 @@ translate_addr (CORE_ADDR addr)
 /************************************************* UDI_XFER_INFERIOR_MEMORY */
 /* FIXME!  Merge these two.  */
 static int
-udi_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write)
+udi_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+                         struct mem_attrib *attrib ATTRIBUTE_UNUSED,
+                         struct target_ops *target ATTRIBUTE_UNUSED)
 {
 
   memaddr = translate_addr (memaddr);
@@ -935,7 +936,7 @@ udi_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write)
 
 /********************************************************** UDI_FILES_INFO */
 static void
-udi_files_info (void)
+udi_files_info (struct target_ops *target)
 {
   printf_unfiltered ("\tAttached to UDI socket to %s", udi_config_id);
   if (prog_name != NULL)
@@ -998,7 +999,7 @@ udi_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
 }
 
 static void
-udi_kill (char *arg, int from_tty)
+udi_kill (void)
 {
 
 #if 0
@@ -1080,7 +1081,7 @@ download (char *load_arg_string, int from_tty)
     error ("Must specify at least a file name with the load command");
 
   filename = tilde_expand (filename);
-  make_cleanup (free, filename);
+  make_cleanup (xfree, filename);
 
   while (token = strtok (NULL, " \t"))
     {
This page took 0.024637 seconds and 4 git commands to generate.