From: Daniel Jacobowitz <drow@mvista.com>
To: Elena Zannoni <ezannoni@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] ppc-linux-nat.c AltiVec regs ptrace
Date: Wed, 20 Feb 2002 14:15:00 -0000 [thread overview]
Message-ID: <20020220171519.A28726@nevyn.them.org> (raw)
In-Reply-To: <15476.4080.303671.894065@localhost.redhat.com>
On Wed, Feb 20, 2002 at 04:06:56PM -0500, Elena Zannoni wrote:
> Right will fix. [I had an ongoing bet :-)]
What, whether Andrew would get to you before I did? :)
<duck and run>
> > > +int have_ptrace_getvrregs
> > > +#ifdef HAVE_PTRACE_GETFPXREGS
> > > + = 1;
> > > +#else
> > > + = 0;
> > > +#endif
> > > +
> >
> > Huh? You defined GETVRREGS unconditionally above. GETFPXREGS has no
> > place in this file, does it? Or do the headers define GETFPXREGS?
> > You also continue this confusion all the way down the patch.
> >
>
> The glibc headers define GETFPXREGS, and that's what we test for in
> the configury. But we are not dealing with floating point registers
> here, so I used the 'correct' name where I could. It would be more
> confusing to talk about FPX regs while instead there are none.
> I explained this in the comments.
>
> I guess I can do the following if it helps.
> #ifdef HAVE_PTRACE_GETFPXREGS
> #define HAVE_PTRACE_GETVRREGS
>
> Whatever I end up using it's partially going to be a lie. I would
> prefer using the VRREGS nomenclature where relevant, though.
I'm confused.
On i386, glibc defines PTRACE_GETFPXREGS. On PowerPC, in current FSF
glibc, sys/ptrace.h does not define anything along these lines at all.
The kernel <asm/ptrace.h> define GETVRREGS (not that we should be
including that header, of course). [<sys/ptrace.h> is an
architecture-specific header, which may not have been apparent.]
If there are outstanding patches to glibc, which defines
PTRACE_GETFPXREGS on PowerPC, then they are still mutable. They should
be updated to a reasonable value.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-02-20 22:15 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 12:21 Elena Zannoni
2002-02-20 12:39 ` Daniel Jacobowitz
2002-02-20 13:07 ` Elena Zannoni
2002-02-20 14:15 ` Daniel Jacobowitz [this message]
2002-02-20 14:34 ` Andrew Cagney
2002-02-20 15:07 ` Elena Zannoni
2002-02-20 15:46 ` Daniel Jacobowitz
2002-02-20 16:28 ` Elena Zannoni
2002-02-20 16:34 ` Daniel Jacobowitz
2002-02-20 18:09 ` Elena Zannoni
2002-02-20 18:57 ` Daniel Jacobowitz
2002-02-20 20:10 ` Elena Zannoni
2002-02-20 21:04 ` Kevin Buettner
2002-02-21 7:33 ` Elena Zannoni
2002-02-21 7:33 ` Kevin Buettner
2002-02-21 7:39 ` Elena Zannoni
2002-02-21 8:00 ` Daniel Jacobowitz
2002-02-21 13:25 ` Elena Zannoni
2002-02-21 13:46 ` Kevin Buettner
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=20020220171519.A28726@nevyn.them.org \
--to=drow@mvista.com \
--cc=ezannoni@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