Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: RFA: don't cast last argument to ptrace
Date: Wed, 28 May 2003 20:21:00 -0000	[thread overview]
Message-ID: <vt2he7eg6fs.fsf@zenia.red-bean.com> (raw)


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) &regs);
    if (ret < 0)
      {
        if (errno == EIO)
--- 428,434 ----
    int ret;
    gdb_vrregset_t regs;
  
!   ret = ptrace (PTRACE_GETVRREGS, tid, 0, &regs);
    if (ret < 0)
      {
        if (errno == EIO)
***************
*** 441,447 ****
  
    fill_vrregset (&regs);
    
!   if (ptrace (PTRACE_SETVRREGS, tid, 0, (int) &regs) < 0)
      perror_with_name ("Couldn't write AltiVec registers");
  }
  
--- 441,447 ----
  
    fill_vrregset (&regs);
    
!   if (ptrace (PTRACE_SETVRREGS, tid, 0, &regs) < 0)
      perror_with_name ("Couldn't write AltiVec registers");
  }
  


             reply	other threads:[~2003-05-28 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 20:21 Jim Blandy [this message]
2003-05-28 20:31 ` Kevin Buettner
2003-05-28 22:39   ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vt2he7eg6fs.fsf@zenia.red-bean.com \
    --to=jimb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox