diff options
author | Jim Blandy <jimb@codesourcery.com> | 2003-05-28 22:39:02 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2003-05-28 22:39:02 +0000 |
commit | 0897f59bfa7f2d7f47de9d7a0f66638a8c08bfe0 (patch) | |
tree | 9a1e09f52f41b1580b8347a2643a6f77dbec454d /gdb | |
parent | 0236e03ee7081b4060b7b6e66a19132ec3a02b1a (diff) | |
download | gdb-0897f59bfa7f2d7f47de9d7a0f66638a8c08bfe0.zip gdb-0897f59bfa7f2d7f47de9d7a0f66638a8c08bfe0.tar.gz gdb-0897f59bfa7f2d7f47de9d7a0f66638a8c08bfe0.tar.bz2 |
* 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')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/ppc-linux-nat.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8eaf22a..dcbf117 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +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-*-*. + 2003-05-28 H.J. Lu <hongjiu.lu@intel.com> * dwarf2read.c (process_die): Handle DW_TAG_try_block and diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 20c8add..d320499 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) ®s); + ret = ptrace (PTRACE_GETVRREGS, tid, 0, ®s); if (ret < 0) { if (errno == EIO) @@ -439,7 +439,7 @@ store_altivec_registers (int tid) fill_vrregset (®s); - if (ptrace (PTRACE_SETVRREGS, tid, 0, (int) ®s) < 0) + if (ptrace (PTRACE_SETVRREGS, tid, 0, ®s) < 0) perror_with_name ("Couldn't write AltiVec registers"); } |