* RFA: don't cast last argument to ptrace
@ 2003-05-28 20:21 Jim Blandy
2003-05-28 20:31 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2003-05-28 20:21 UTC (permalink / raw)
To: gdb-patches
I've committed this to the PPC64 Linux branch, but I think it should
be considered for the trunk as well.
2003-05-14 James 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-*-*.
*** gdb/ppc-linux-nat.c.~1.2.~ Wed May 14 11:37:19 2003
--- gdb/ppc-linux-nat.c Wed May 14 18:29:11 2003
***************
*** 428,434 ****
int ret;
gdb_vrregset_t regs;
! ret = ptrace (PTRACE_GETVRREGS, tid, 0, (int) ®s);
if (ret < 0)
{
if (errno == EIO)
--- 428,434 ----
int ret;
gdb_vrregset_t regs;
! ret = ptrace (PTRACE_GETVRREGS, tid, 0, ®s);
if (ret < 0)
{
if (errno == EIO)
***************
*** 441,447 ****
fill_vrregset (®s);
! if (ptrace (PTRACE_SETVRREGS, tid, 0, (int) ®s) < 0)
perror_with_name ("Couldn't write AltiVec registers");
}
--- 441,447 ----
fill_vrregset (®s);
! if (ptrace (PTRACE_SETVRREGS, tid, 0, ®s) < 0)
perror_with_name ("Couldn't write AltiVec registers");
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: don't cast last argument to ptrace
2003-05-28 20:21 RFA: don't cast last argument to ptrace Jim Blandy
@ 2003-05-28 20:31 ` Kevin Buettner
2003-05-28 22:39 ` Jim Blandy
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2003-05-28 20:31 UTC (permalink / raw)
To: Jim Blandy, gdb-patches
On May 28, 3:30pm, Jim Blandy wrote:
> Subject: RFA: don't cast last argument to ptrace
>
> I've committed this to the PPC64 Linux branch, but I think it should
> be considered for the trunk as well.
>
> 2003-05-14 James 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-*-*.
Yes, I agree. Go ahead and commit it to the trunk too.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: don't cast last argument to ptrace
2003-05-28 20:31 ` Kevin Buettner
@ 2003-05-28 22:39 ` Jim Blandy
0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2003-05-28 22:39 UTC (permalink / raw)
To: Kevin Buettner; +Cc: gdb-patches
I've committed this. Thanks.
Kevin Buettner <kevinb@redhat.com> writes:
> On May 28, 3:30pm, Jim Blandy wrote:
> > Subject: RFA: don't cast last argument to ptrace
> >
> > I've committed this to the PPC64 Linux branch, but I think it should
> > be considered for the trunk as well.
> >
> > 2003-05-14 James 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-*-*.
>
> Yes, I agree. Go ahead and commit it to the trunk too.
>
> Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-28 22:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 20:21 RFA: don't cast last argument to ptrace Jim Blandy
2003-05-28 20:31 ` Kevin Buettner
2003-05-28 22:39 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox