aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tracefile.c')
-rw-r--r--gdb/tracefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracefile.c b/gdb/tracefile.c
index a31a589..21bf25f 100644
--- a/gdb/tracefile.c
+++ b/gdb/tracefile.c
@@ -429,7 +429,7 @@ tracefile_fetch_registers (struct regcache *regcache, int regno)
return;
}
- regs = alloca (register_size (gdbarch, pc_regno));
+ regs = (gdb_byte *) alloca (register_size (gdbarch, pc_regno));
store_unsigned_integer (regs, register_size (gdbarch, pc_regno),
gdbarch_byte_order (gdbarch),
tp->base.loc->address);