From: Simon Marchi Date: Wed, 11 Nov 2015 20:16:05 +0000 (-0500) Subject: Replace long int * cast with PTRACE_TYPE_RET * X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4397c913d5640ba61316d3e631d544cf768b5a36;p=binutils-gdb.git Replace long int * cast with PTRACE_TYPE_RET * These casts uses the typedef target type (long int *) instead of the typedef name. This was a little mistake in one of the big C++ cast patches. gdb/ChangeLog: * inf-ptrace.c (inf_ptrace_fetch_register): Change long int * cast to PTRACE_TYPE_RET *. (inf_ptrace_store_register): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 604ec4d4d47..cd5b9e7fc2b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-11-11 Simon Marchi + + * 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 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index c98de4ae437..55abd8228f0 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -728,7 +728,7 @@ inf_ptrace_fetch_register (struct regcache *regcache, int regnum) 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++) @@ -786,7 +786,7 @@ inf_ptrace_store_register (const struct regcache *regcache, int regnum) 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);