Replace (void *) cast with (gdb_byte *)
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Oct 2015 22:36:26 +0000 (18:36 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Oct 2015 22:36:26 +0000 (18:36 -0400)
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 *).

gdb/ChangeLog
gdb/nat/linux-ptrace.c

index fae9d4d324e26ee1cfdcaa6b88bc00efa51c79b3..d658649025db77ca6ba3410929ce99749c699ac3 100644 (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.
index 97331a4041ed1402fedb1bbd70226d754d309358..60c7960a9593053f63b4b92be4193df670998a6e 100644 (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,
This page took 0.031497 seconds and 4 git commands to generate.