aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-ravenscar-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sparc-ravenscar-thread.c')
-rw-r--r--gdb/sparc-ravenscar-thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/sparc-ravenscar-thread.c b/gdb/sparc-ravenscar-thread.c
index 80c5e84..02f9f7c 100644
--- a/gdb/sparc-ravenscar-thread.c
+++ b/gdb/sparc-ravenscar-thread.c
@@ -66,7 +66,7 @@ supply_register_at_address (struct regcache *regcache, int regnum,
int buf_size = register_size (gdbarch, regnum);
gdb_byte *buf;
- buf = alloca (buf_size);
+ buf = (gdb_byte *) alloca (buf_size);
read_memory (register_addr, buf, buf_size);
regcache_raw_supply (regcache, regnum, buf);
}