aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-24 18:36:26 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2015-10-24 18:36:26 -0400
commit55e5bf59f09012c978aa952670be654b6c5598e8 (patch)
tree80b9cdedb025a5d0be3c9e50a4b04715f381e7f2 /gdb/nat
parent49e66b4debebff088958077201eabab36df168f0 (diff)
downloadgdb-55e5bf59f09012c978aa952670be654b6c5598e8.zip
gdb-55e5bf59f09012c978aa952670be654b6c5598e8.tar.gz
gdb-55e5bf59f09012c978aa952670be654b6c5598e8.tar.bz2
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 *).
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/linux-ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
index 97331a4..60c7960 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,