summaryrefslogtreecommitdiffstats
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2003-05-28 22:39:02 +0000
committerJim Blandy <jimb@codesourcery.com>2003-05-28 22:39:02 +0000
commit0897f59bfa7f2d7f47de9d7a0f66638a8c08bfe0 (patch)
tree9a1e09f52f41b1580b8347a2643a6f77dbec454d /gdb/ppc-linux-nat.c
parent0236e03ee7081b4060b7b6e66a19132ec3a02b1a (diff)
downloadppe42-binutils-0897f59bfa7f2d7f47de9d7a0f66638a8c08bfe0.tar.gz
ppe42-binutils-0897f59bfa7f2d7f47de9d7a0f66638a8c08bfe0.zip
* 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-*-*.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 20c8adda44..d320499fec 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -426,7 +426,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)
@@ -439,7 +439,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");
}
OpenPOWER on IntegriCloud