aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-10-12 21:39:21 +0000
committerKevin Buettner <kevinb@redhat.com>2000-10-12 21:39:21 +0000
commitd93bce0603df8a42ac881c0bf2fa043f147ca14f (patch)
tree7a6dd52a92dc893b6fa7df40f63ac474a644c8d8
parent235d1e032292b26ef7f9e66bab679edc8455f535 (diff)
downloadgdb-d93bce0603df8a42ac881c0bf2fa043f147ca14f.zip
gdb-d93bce0603df8a42ac881c0bf2fa043f147ca14f.tar.gz
gdb-d93bce0603df8a42ac881c0bf2fa043f147ca14f.tar.bz2
Protoization.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/remote-rdp.c14
-rw-r--r--gdb/remote-sds.c10
-rw-r--r--gdb/remote-sim.c14
4 files changed, 25 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0f59014..484cf0e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-12 Kevin Buettner <kevinb@redhat.com>
+
+ * remote-rdp.c (remote_rdp_xfer_inferior_memory): Protoize.
+ * remote-sds.c (sds_xfer_memory): Protoize.
+ * remote-sim.c (gdbsim_xfer_inferior_memory): Protoize.
+
2000-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Daniel Berlin <dberlin@redhat.com> :
diff --git a/gdb/remote-rdp.c b/gdb/remote-rdp.c
index d64e94a..62e1013 100644
--- a/gdb/remote-rdp.c
+++ b/gdb/remote-rdp.c
@@ -1241,13 +1241,15 @@ remote_rdp_prepare_to_store (void)
/* Do nothing, since we can store individual regs */
}
+/* 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
-remote_rdp_xfer_inferior_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target; /* ignored */
+remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
+ int write, struct target_ops *target)
{
/* I infer from D Taylor's code that there's a limit on the amount
we can transfer in one chunk.. */
diff --git a/gdb/remote-sds.c b/gdb/remote-sds.c
index f7fbf00..1549978 100644
--- a/gdb/remote-sds.c
+++ b/gdb/remote-sds.c
@@ -662,16 +662,12 @@ sds_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
/* 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
-sds_xfer_memory (memaddr, myaddr, len, should_write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int should_write;
- struct target_ops *target; /* ignored */
+sds_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int should_write,
+ struct target_ops *target)
{
return dcache_xfer_memory (sds_dcache, memaddr, myaddr, len, should_write);
}
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index d02b1ba..8b03b88 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -706,13 +706,15 @@ gdbsim_prepare_to_store (void)
/* Do nothing, since we can store individual regs */
}
+/* 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
-gdbsim_xfer_inferior_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target; /* ignored */
+gdbsim_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
+ int write, struct target_ops *target)
{
if (!program_loaded)
error ("No program loaded.");