Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Add support for fpscr for Power / PowerPC targets
Date: Thu, 11 Apr 2002 13:10:00 -0000	[thread overview]
Message-ID: <1020411201015.ZM3342@localhost.localdomain> (raw)
In-Reply-To: Daniel Jacobowitz <drow@mvista.com> "Re: [PATCH] Add support for fpscr for Power / PowerPC targets" (Apr 11,  3:25pm)

On Apr 11,  3:25pm, Daniel Jacobowitz wrote:

> I know this is not adequately documented right now, but every change to
> the format of the register cache is a change to the remote protocol.
> The closest thing we've got to documentation are the files in
> regformats/; they don't document a fraction of the possibilities,
> though.

Thanks for reminding me of this.

> I've updated the PowerPC definition to match this change, as
> well as updating gdbserver.

Thanks.

> Before I commit either, though:
> 
> > @@ -376,6 +380,14 @@ store_register (int tid, int regno)
> >        ptrace (PT_WRITE_U, tid, (PTRACE_ARG3_TYPE) regaddr,
> >  	      *(PTRACE_XFER_TYPE *) & buf[i]);
> >        regaddr += sizeof (PTRACE_XFER_TYPE);
> > +
> > +      if (errno == EIO 
> > +          && regno == gdbarch_tdep (current_gdbarch)->ppc_fpscr_regnum)
> > +	{
> > +	  /* Some older kernel versions don't allow fpscr to be written.  */
> > +	  continue;
> > +	}
> > +
> >        if (errno != 0)
> >  	{
> >  	  sprintf (mess, "writing register %s (#%d)", 
> 
> What versions are we talking here?

2.2.X, for X <= 15.  Probably for X > 15 too, but I haven't checked.
I don't think the 2.4 kernels have this problem though.

> Is it worth silencing the gdbserver warning in this case?

If it's only a warning, it probably doesn't hurt to leave it in,
though it'd be nice to structure it so that the warning is only
printed once.

I would have preferred to not to have to add the above code to
ppc-linux-nat.c, but I was seeing too many regressions without it and
that made it difficult to evaluate the patch.  It was worth it to add
the above code though because I ended up catching some regressions
that I would've missed otherwise.  (I probably ought to just upgrade
my Linux/PPC box...)

Kevin


  reply	other threads:[~2002-04-11 20:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11 12:17 Kevin Buettner
2002-04-11 12:25 ` Daniel Jacobowitz
2002-04-11 13:10   ` Kevin Buettner [this message]
2002-04-11 13:31     ` Daniel Jacobowitz
2002-04-11 13:08 ` Andrew Cagney
2002-04-11 13:39   ` Kevin Buettner
2002-04-14 14:52     ` Andrew Cagney

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=1020411201015.ZM3342@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=drow@mvista.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