]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Protoization.
authorKevin Buettner <kevinb@redhat.com>
Fri, 27 Oct 2000 01:25:10 +0000 (01:25 +0000)
committerKevin Buettner <kevinb@redhat.com>
Fri, 27 Oct 2000 01:25:10 +0000 (01:25 +0000)
gdb/ChangeLog
gdb/sun3-nat.c
gdb/symm-nat.c

index 24e55bf3b2f0a9e95a701258bc7fa8eda1aef867..c9773ce9562162436a074e8d6270f847c1421ed9 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-26  Kevin Buettner  <kevinb@redhat.com>
+
+       * sun3-nat.c (fetch_core_registers): Protoize.
+       * symm-nat.c (print_1167_regs, child_xfer_memory): Protoize.
+
 2000-10-26  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * stabsread.c (define_symbol): Update comment.
index 8f94809f619a8f3a1e6791c8708018602dbc87d5..8e27e64d60d960b3d499e173744eee0ff5491051 100644 (file)
@@ -90,14 +90,22 @@ store_inferior_registers (int regno)
 
 
 /* All of this stuff is only relevant if both host and target are sun3.  */
-/* Machine-dependent code for pulling registers out of a Sun-3 core file. */
+
+/* Provide registers to GDB from a core file.
+
+   CORE_REG_SECT points to an array of bytes, which were obtained from
+   a core file which BFD thinks might contain register contents. 
+   CORE_REG_SIZE is its size.
+
+   WHICH says which register set corelow suspects this is:
+     0 --- the general-purpose register set
+     2 --- the floating-point register set
+
+   REG_ADDR isn't used.  */
 
 static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
-     char *core_reg_sect;
-     unsigned core_reg_size;
-     int which;
-     CORE_ADDR reg_addr;       /* Unused in this version */
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
+                     int which, CORE_ADDR reg_addr)
 {
   struct regs *regs = (struct regs *) core_reg_sect;
 
index 9a56a2aed893e5cbeb5fbb714cc2e0fed7593110..7b798aee5eec226e224a9fff3a4e7b83ea006ebf 100644 (file)
@@ -313,8 +313,7 @@ print_1167_control_word (unsigned int pcr)
   printf_unfiltered ("\n");
 }
 
-print_1167_regs (regs)
-     long regs[FPA_NREGS];
+print_1167_regs (long regs[FPA_NREGS])
 
 {
   int i;
@@ -737,7 +736,7 @@ detach (int signo)
 
 /* Copy LEN bytes to or from inferior's memory starting at MEMADDR
    to debugger memory starting at MYADDR.   Copy to inferior if
-   WRITE is nonzero.
+   WRITE is nonzero.  TARGET is ignored.
 
    Returns the length copied, which is either the LEN argument or zero.
    This xfer function does not do partial moves, since child_ops
@@ -745,12 +744,8 @@ detach (int signo)
    anyway.  */
 
 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.  */