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 *).
This commit is contained in:
Simon Marchi 2015-10-24 18:36:26 -04:00
parent 49e66b4deb
commit 55e5bf59f0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
* nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
(void *) cast with (gdb_byte *).
2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
* proc-service.c (ps_pdread): Add cast.

View File

@ -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,