From: Simon Marchi Date: Sat, 24 Oct 2015 22:36:26 +0000 (-0400) Subject: Replace (void *) cast with (gdb_byte *) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55e5bf59f09012c978aa952670be654b6c5598e8;p=binutils-gdb.git Replace (void *) cast with (gdb_byte *) Fixes: /home/simark/src/binutils-gdb/gdb/nat/linux-ptrace.c:207:6: error: invalid conversion from ‘void*’ to ‘gdb_byte* {aka unsigned char*}’ [-fpermissive] pc = (void *) (uintptr_t) l; ^ gdb/ChangeLog: * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace (void *) cast with (gdb_byte *). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fae9d4d324e..d658649025d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-10-24 Simon Marchi + + * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace + (void *) cast with (gdb_byte *). + 2015-10-24 Simon Marchi * proc-service.c (ps_pdread): Add cast. diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c index 97331a4041e..60c7960a959 100644 --- a/gdb/nat/linux-ptrace.c +++ b/gdb/nat/linux-ptrace.c @@ -204,7 +204,7 @@ linux_ptrace_test_ret_to_nx (void) safe_strerror (errno)); return; } - pc = (void *) (uintptr_t) l; + pc = (gdb_byte *) (uintptr_t) l; kill (child, SIGKILL); ptrace (PTRACE_KILL, child, (PTRACE_TYPE_ARG3) NULL,