summaryrefslogtreecommitdiff
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
commitfcac6e2331781628d58a8030db3f828de6e074ac (patch)
treecf7e9ef1ba47758b634879c547786c35f014baa3 /gdb/inftarg.c
parent224b508cb4f96371bdbd0010808d2dc1d75915d0 (diff)
downloadgdb-fcac6e2331781628d58a8030db3f828de6e074ac.tar.gz
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 e0b6a31e278..df3c5fe5edc 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;