aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target-memory.c')
-rw-r--r--gdb/target-memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target-memory.c b/gdb/target-memory.c
index 177deb6..93772aa 100644
--- a/gdb/target-memory.c
+++ b/gdb/target-memory.c
@@ -366,7 +366,7 @@ target_write_memory_blocks (VEC(memory_write_request_s) *requests,
for (i = 0; VEC_iterate (memory_write_request_s, garbled, i, r); ++i)
{
gdb_assert (r->data == NULL);
- r->data = xmalloc (r->end - r->begin);
+ r->data = (gdb_byte *) xmalloc (r->end - r->begin);
err = target_read_memory (r->begin, r->data, r->end - r->begin);
if (err != 0)
goto out;