]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
authorJim Blandy <jimb@codesourcery.com>
Wed, 28 May 2003 20:20:21 +0000 (20:20 +0000)
committerJim Blandy <jimb@codesourcery.com>
Wed, 28 May 2003 20:20:21 +0000 (20:20 +0000)
argument to ptrace to int; the system headers should give it the
right type, and pointers don't fit in ints on powerpc64-*-*.

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

index 2580a1670de068f396067adce0543b337027c3a0..61f59e513053fa7aee4ffea8c94b12e8894891af 100644 (file)
@@ -1,5 +1,9 @@
 2003-05-28  Jim Blandy  <jimb@redhat.com>
 
+       * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
+       argument to ptrace to int; the system headers should give it the
+       right type, and pointers don't fit in ints on powerpc64-*-*.
+
        * ppc-linux-nat.c (ppc_register_u_addr): Compute u-area offsets
        using the tdep's wordsize, not just '4'.
 
index f69c14011b3208fe93540ad74e5ac96066f51ea5..c668c589def6852156485d00577cce742aad265a 100644 (file)
@@ -429,7 +429,7 @@ store_altivec_registers (int tid)
   int ret;
   gdb_vrregset_t regs;
 
-  ret = ptrace (PTRACE_GETVRREGS, tid, 0, (int) &regs);
+  ret = ptrace (PTRACE_GETVRREGS, tid, 0, &regs);
   if (ret < 0)
     {
       if (errno == EIO)
@@ -442,7 +442,7 @@ store_altivec_registers (int tid)
 
   fill_vrregset (&regs);
   
-  if (ptrace (PTRACE_SETVRREGS, tid, 0, (int) &regs) < 0)
+  if (ptrace (PTRACE_SETVRREGS, tid, 0, &regs) < 0)
     perror_with_name ("Couldn't write AltiVec registers");
 }