aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-05-16 16:36:24 +0000
committerMark Kettenis <kettenis@gnu.org>2005-05-16 16:36:24 +0000
commit961cb7b5ccf3306779af52da20094a2bac8030c6 (patch)
tree6d5c8b462c46849cd967c027158202367f79e62a /gdb/remote.c
parentd01e66a5389d9003c549a1836010b35e78d65c7e (diff)
downloadgdb-961cb7b5ccf3306779af52da20094a2bac8030c6.zip
gdb-961cb7b5ccf3306779af52da20094a2bac8030c6.tar.gz
gdb-961cb7b5ccf3306779af52da20094a2bac8030c6.tar.bz2
* corelow.c (core_xfer_partial): Change type of readbuf and
writebuf to `gdb_byte *'. * sparc-nat.c (sparc_xfer_wcookie, sparc_xfer_partial): Change type of readbuf and writebuf to `gdb_byte *'. * bsd-uthread.c (bsd_uthread_xfer_partial): Change type of readbuf and writebuf to `gdb_byte *'. * inf-ptrace.c (inf_ptrace_xfer_partial): Change type of readbuf and writebuf to `gdb_byte *'. * bsd-kvm.c (bsd_kvm_xfer_memory): Replace. (bsd_kvm_xfer_partial): New function. (bsd_kvm_add_target): Set to_xfer_partial instead of to_xfer_memory. * bfd-target.c (target_bfd_xfer_partial): Change type of readbuf and writebuf to `gdb_byte *'. * target.c (deprecated_debug_xfer_memory): Remove prototype. (deprecated_debug_xfer_memory): Change type of second argument to `gdb_byte *'. * remote.c (remote_xfer_memory): Remove prototype. (remote_xfer_memory): Change type of second argument to `gdb_byte *'. (remote_xfer_partial): Change type of readbuf and writebuf to `gdb_byte *'.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 5b345b5..1c1f4f6 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -72,11 +72,6 @@ static void build_remote_gdbarch_data (void);
static void remote_files_info (struct target_ops *ignore);
-static int remote_xfer_memory (CORE_ADDR memaddr, char *myaddr,
- int len, int should_write,
- struct mem_attrib *attrib,
- struct target_ops *target);
-
static void remote_prepare_to_store (void);
static void remote_fetch_registers (int regno);
@@ -3871,7 +3866,7 @@ remote_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
read; 0 for error. TARGET is unused. */
static int
-remote_xfer_memory (CORE_ADDR mem_addr, char *buffer, int mem_len,
+remote_xfer_memory (CORE_ADDR mem_addr, gdb_byte *buffer, int mem_len,
int should_write, struct mem_attrib *attrib,
struct target_ops *target)
{
@@ -4954,8 +4949,8 @@ the loaded file\n"));
static LONGEST
remote_xfer_partial (struct target_ops *ops, enum target_object object,
- const char *annex, void *readbuf, const void *writebuf,
- ULONGEST offset, LONGEST len)
+ const char *annex, gdb_byte *readbuf,
+ const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
{
struct remote_state *rs = get_remote_state ();
int i;