* exec.c (xfer_memory): Add attrib argument.
[deliverable/binutils-gdb.git] / gdb / remote-udi.c
index febcf5c5ac1870dc6f0544126a8b0ba86054118d..3987d87a5bac9ff6b64ef401b6fe73837262e37a 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.
@@ -131,7 +131,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,7 +229,7 @@ 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");
@@ -923,7 +923,8 @@ translate_addr (CORE_ADDR addr)
 /* FIXME!  Merge these two.  */
 static int
 udi_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
-                         struct target_ops * target)
+                         struct mem_attrib *attrib ATTRIBUTE_UNUSED,
+                         struct target_ops *target ATTRIBUTE_UNUSED)
 {
 
   memaddr = translate_addr (memaddr);
@@ -1081,7 +1082,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.023957 seconds and 4 git commands to generate.