mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
* 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-*-*.
This commit is contained in:
parent
0236e03ee7
commit
0897f59bfa
@ -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>
|
2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* dwarf2read.c (process_die): Handle DW_TAG_try_block and
|
* dwarf2read.c (process_die): Handle DW_TAG_try_block and
|
||||||
|
@ -426,7 +426,7 @@ store_altivec_registers (int tid)
|
|||||||
int ret;
|
int ret;
|
||||||
gdb_vrregset_t regs;
|
gdb_vrregset_t regs;
|
||||||
|
|
||||||
ret = ptrace (PTRACE_GETVRREGS, tid, 0, (int) ®s);
|
ret = ptrace (PTRACE_GETVRREGS, tid, 0, ®s);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
if (errno == EIO)
|
if (errno == EIO)
|
||||||
@ -439,7 +439,7 @@ store_altivec_registers (int tid)
|
|||||||
|
|
||||||
fill_vrregset (®s);
|
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");
|
perror_with_name ("Couldn't write AltiVec registers");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user