This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFC] Protoize remote-rdp.c, remote-sds.c, remote-sim.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] Protoize remote-rdp.c, remote-sds.c, remote-sim.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Mon, 9 Oct 2000 22:44:14 -0700
More protoization...
* remote-rdp.c (remote_rdp_xfer_inferior_memory): Protoize.
* remote-sds.c (sds_xfer_memory): Protoize.
* remote-sim.c (gdbsim_xfer_inferior_memory): Protoize.
Index: remote-rdp.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-rdp.c,v
retrieving revision 1.5
diff -u -r1.5 remote-rdp.c
--- remote-rdp.c 2000/09/06 23:39:15 1.5
+++ remote-rdp.c 2000/10/10 05:23:41
@@ -1241,13 +1241,15 @@
/* 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.. */
Index: remote-sds.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sds.c,v
retrieving revision 1.7
diff -u -r1.7 remote-sds.c
--- remote-sds.c 2000/09/01 00:12:10 1.7
+++ remote-sds.c 2000/10/10 05:23:42
@@ -662,16 +662,12 @@
/* 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);
}
Index: remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.7
diff -u -r1.7 remote-sim.c
--- remote-sim.c 2000/08/02 11:05:50 1.7
+++ remote-sim.c 2000/10/10 05:23:42
@@ -706,13 +706,15 @@
/* 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.");