aboutsummaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-30 15:47:30 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-30 15:47:30 +0000
commitf929a5791d64e48f9abee0467d3a7b1ca4bc0bf0 (patch)
tree38fa2639b84aad56ecff9ca6ac6871b23e56b21f /gdb/inftarg.c
parenta737bd4d24639d1184355aaf10d230e0209ed63c (diff)
downloadgdb-f929a5791d64e48f9abee0467d3a7b1ca4bc0bf0.zip
gdb-f929a5791d64e48f9abee0467d3a7b1ca4bc0bf0.tar.gz
gdb-f929a5791d64e48f9abee0467d3a7b1ca4bc0bf0.tar.bz2
2004-09-30 Andrew Cagney <cagney@gnu.org>
* inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to inf_ptrace_xfer_memory with equivalent code. * inftarg.c (child_xfer_partial): When performing a write, pass writebuf to child_xfer_memory.
Diffstat (limited to 'gdb/inftarg.c')
-rw-r--r--gdb/inftarg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index e0b6a31..df3c5fe 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -540,7 +540,7 @@ child_xfer_partial (struct target_ops *ops, enum target_object object,
return child_xfer_memory (offset, readbuf, len, 0/*write*/,
NULL, ops);
if (writebuf)
- return child_xfer_memory (offset, readbuf, len, 1/*write*/,
+ return child_xfer_memory (offset, (void *) writebuf, len, 1/*write*/,
NULL, ops);
return -1;