summaryrefslogtreecommitdiff
path: root/gdb/score-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/score-tdep.c')
-rw-r--r--gdb/score-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index ef9336ead0a..09df712d090 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -825,7 +825,7 @@ score7_malloc_and_get_memblock (CORE_ADDR addr, CORE_ADDR size)
else if (size == 0)
return NULL;
- memblock = xmalloc (size);
+ memblock = (gdb_byte *) xmalloc (size);
memset (memblock, 0, size);
ret = target_read_memory (addr & ~0x3, memblock, size);
if (ret)