+2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
+
+ * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
+ cast to PTRACE_TYPE_RET *.
+ (inf_ptrace_store_register): Likewise.
+
2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
* avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
size = register_size (gdbarch, regnum);
gdb_assert ((size % sizeof (PTRACE_TYPE_RET)) == 0);
- buf = (long int *) alloca (size);
+ buf = (PTRACE_TYPE_RET *) alloca (size);
/* Read the register contents from the inferior a chunk at a time. */
for (i = 0; i < size / sizeof (PTRACE_TYPE_RET); i++)
size = register_size (gdbarch, regnum);
gdb_assert ((size % sizeof (PTRACE_TYPE_RET)) == 0);
- buf = (long int *) alloca (size);
+ buf = (PTRACE_TYPE_RET *) alloca (size);
/* Write the register contents into the inferior a chunk at a time. */
regcache_raw_collect (regcache, regnum, buf);