diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-10-02 00:49:55 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-10-02 00:49:55 +0000 |
commit | e082ddcac652043505c6d117cab8c66cea33fa78 (patch) | |
tree | 1de1a628d40110f2cd3d3fa872c0fa8fedf613d1 /gdb/remote-array.c | |
parent | d64552c5891911a7548901904c4acf9b5e73f922 (diff) | |
download | gdb-e082ddcac652043505c6d117cab8c66cea33fa78.zip gdb-e082ddcac652043505c6d117cab8c66cea33fa78.tar.gz gdb-e082ddcac652043505c6d117cab8c66cea33fa78.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/remote-array.c')
-rw-r--r-- | gdb/remote-array.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gdb/remote-array.c b/gdb/remote-array.c index 9c3a9d7..cd3cff3 100644 --- a/gdb/remote-array.c +++ b/gdb/remote-array.c @@ -216,9 +216,7 @@ printf_monitor (char *pattern,...) * write_monitor -- send raw data to monitor. */ static void -write_monitor (data, len) - char data[]; - int len; +write_monitor (char data[], int len) { if (SERIAL_WRITE (array_desc, data, len)) fprintf (stderr, "SERIAL_WRITE failed: %s\n", safe_strerror (errno)); @@ -1020,14 +1018,15 @@ array_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) return (count); } -/* 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 -array_xfer_memory (memaddr, myaddr, len, write, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int write; - struct target_ops *target; /* ignored */ +array_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, + struct target_ops *target) { if (write) return array_write_inferior_memory (memaddr, myaddr, len); |