Protoization.
authorKevin Buettner <kevinb@redhat.com>
Tue, 10 Oct 2000 05:17:25 +0000 (05:17 +0000)
committerKevin Buettner <kevinb@redhat.com>
Tue, 10 Oct 2000 05:17:25 +0000 (05:17 +0000)
gdb/ChangeLog
gdb/remote-nindy.c
gdb/remote-os9k.c
gdb/remote-rdi.c

index 2304317..340bc0e 100644 (file)
@@ -1,3 +1,9 @@
+2000-10-09  Kevin Buettner  <kevinb@redhat.com>
+
+       * remote-nindy.c (non_dle, nindy_xfer_inferior_memory): Protoize.
+       * remote-os9k.c (rombug_xfer_inferior_memory): Protoize.
+       * remote-rdi.c (arm_rdi_xfer_memory): Protoize.
+
 2000-10-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
 
        * config/i386/i386sol2.mh:  Add XM_CLIBS definition to resolve
index 807000d..c5e0a4a 100644 (file)
@@ -240,14 +240,13 @@ nindy_files_info (void)
                     nindy_initial_brk ? " with initial break" : "");
 }
 \f
-/* Return the number of characters in the buffer before
-   the first DLE character.  */
+/* Return the number of characters in the buffer BUF before
+   the first DLE character.  N is maximum number of characters to
+   consider.  */
 
 static
 int
-non_dle (buf, n)
-     char *buf;                        /* Character buffer; NOT '\0'-terminated */
-     int n;                    /* Number of characters in buffer */
+non_dle (char *buf, int n)
 {
   int i;
 
@@ -482,15 +481,12 @@ nindy_store_registers (int regno)
 
 /* Copy LEN bytes to or from inferior's memory starting at MEMADDR
    to debugger memory starting at MYADDR.   Copy to inferior if
-   SHOULD_WRITE is nonzero.  Returns the length copied. */
+   SHOULD_WRITE is nonzero.  Returns the length copied.  TARGET is
+   unused.  */
 
 int
-nindy_xfer_inferior_memory (memaddr, myaddr, len, should_write, target)
-     CORE_ADDR memaddr;
-     char *myaddr;
-     int len;
-     int should_write;
-     struct target_ops *target;        /* ignored */
+nindy_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
+                           int should_write, struct target_ops *target)
 {
   if (len <= 0)
     return 0;
index 343c75d..08e1d85 100644 (file)
@@ -818,14 +818,15 @@ rombug_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
   return len;
 }
 
-/* FIXME-someday!  merge these two.  */
+/* Transfer LEN bytes between GDB address MYADDR and target address
+   MEMADDR.  If WRITE is non-zero, transfer them to the target,
+   otherwise transfer them from the target.  TARGET is unused.
+
+   Returns the number of bytes transferred. */
+
 static int
-rombug_xfer_inferior_memory (memaddr, myaddr, len, write, target)
-     CORE_ADDR memaddr;
-     char *myaddr;
-     int len;
-     int write;
-     struct target_ops *target;        /* ignored */
+rombug_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
+                            int write, struct target_ops *target)
 {
   if (write)
     return rombug_write_inferior_memory (memaddr, myaddr, len);
index a7414aa..708c45f 100644 (file)
@@ -622,16 +622,12 @@ arm_rdi_store_registers (int regno)
 /* Read or write LEN bytes from inferior memory at MEMADDR,
    transferring to or from debugger address MYADDR.  Write to inferior
    if SHOULD_WRITE is nonzero.  Returns length of data written or
-   read; 0 for error.  */
+   read; 0 for error.  TARGET is unused.  */
 
 /* ARGSUSED */
 static int
-arm_rdi_xfer_memory (memaddr, myaddr, len, should_write, target)
-     CORE_ADDR memaddr;
-     char *myaddr;
-     int len;
-     int should_write;
-     struct target_ops *target;        /* ignored */
+arm_rdi_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
+                    int should_write, struct target_ops *target)
 {
   int rslt, i;