aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
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 /gdb/remote-sim.c
parent235d1e032292b26ef7f9e66bab679edc8455f535 (diff)
downloadgdb-d93bce0603df8a42ac881c0bf2fa043f147ca14f.zip
gdb-d93bce0603df8a42ac881c0bf2fa043f147ca14f.tar.gz
gdb-d93bce0603df8a42ac881c0bf2fa043f147ca14f.tar.bz2
Protoization.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c14
1 files changed, 8 insertions, 6 deletions
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.");