2000-12-22 Fernando Nasser <fnasser@redhat.com>
[deliverable/binutils-gdb.git] / gdb / hppah-nat.c
index 222a6e08d8ddc9906ca3217f4928c3ba8e688e0a..549ea1945ad32dff3b48458ab2560f75c207a435 100644 (file)
@@ -262,15 +262,11 @@ fetch_register (int regno)
    Returns the length copied, which is either the LEN argument or zero.
    This xfer function does not do partial moves, since child_ops
    doesn't allow memory operations to cross below us in the target stack
-   anyway.  */
+   anyway.  TARGET is ignored.  */
 
 int
-child_xfer_memory (memaddr, myaddr, len, write, target)
-     CORE_ADDR memaddr;
-     char *myaddr;
-     int len;
-     int write;
-     struct target_ops *target;        /* ignored */
+child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+                  struct target_ops *target)
 {
   register int i;
   /* Round starting address down to longword boundary.  */
@@ -344,7 +340,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
              /* No, we still fail.  Okay, time to punt. */
              if ((pt_status == -1) && errno)
                {
-                 free (buffer);
+                 xfree (buffer);
                  return 0;
                }
            }
@@ -360,7 +356,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
                                   inferior_pid, (PTRACE_ARG3_TYPE) addr, 0);
          if (errno)
            {
-             free (buffer);
+             xfree (buffer);
              return 0;
            }
          QUIT;
@@ -369,7 +365,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
       /* Copy appropriate bytes out of the buffer.  */
       memcpy (myaddr, (char *) buffer + (memaddr & (sizeof (int) - 1)), len);
     }
-  free (buffer);
+  xfree (buffer);
   return len;
 }
 
This page took 0.024155 seconds and 4 git commands to generate.