Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfa, v2] Fix inferior calls during interrupted system calls 	on PowerPC
Date: Fri, 02 May 2008 14:38:00 -0000	[thread overview]
Message-ID: <20080502143603.GH29202@caradoc.them.org> (raw)
In-Reply-To: <200804251425.m3PEPGp6011396@d12av02.megacenter.de.ibm.com>

On Fri, Apr 25, 2008 at 04:25:10PM +0200, Ulrich Weigand wrote:
> Hello,
> 
> this is an updated version of the patch to fix inferior system
> calls during interrupted system calls on PowerPC Linux:
> http://sourceware.org/ml/gdb-patches/2008-03/msg00452.html
> 
> Retested on powerpc-linux and powerpc64-linux, both natively and
> using a local gdbserver.  Fixes all interrupt.exp failures.
> 
> Dan, are the remote/gdbserver parts of this patch OK?

You wrote:

> gdbserver is switched to always use powerpc-linux32/64 instead
> of powerpc-32/64.  This still leaves the new registers out on
> any non-AltiVec platforms.  I guess for powerpc-e500 we could
> create a similar powerpc-linuxe500 feature, if this is required.
> I'm not sure how to handle the default (non-AltiVec, non-SPE)
> case which does not yet use XML.  Simply adding registers to
> the .dat files is probably not a good idea as it might break
> old GDBs that connect to the new gdbserver ...

I am not terribly concerned about breaking old GDBs.  I think keeping
new GDB able to connect to old stubs is important, but if there's a
feature to add that means a new stub requires a new GDB that's usually
easy to accomodate - host programs are easier to upgrade than target
programs.  We could switch the default case to use XML-generated
data files and add these.

I'd like to fix this on SPE too but there's clearly no obligation on
you to do that; next time we're working through our GDB test results
here at CodeSourcery we'll encounter the failure and hopefully notice
and fix it.

Unless there's a need to keep the Linux-specific register feature in
rs6000-tdep.c, it can go in ppc-linux-tdep.c; see mips-linux-tdep.c's
handling of the restart register for an example.  Or is it more
complicated to get the numbering right that way?

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-05-02 14:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-27 19:34 [rfc] " Ulrich Weigand
2008-04-25 16:16 ` [rfa, v2] " Ulrich Weigand
2008-05-02 14:38   ` Daniel Jacobowitz [this message]
2008-05-03 15:55     ` [rfa, v3] " Ulrich Weigand
2008-05-03 16:19       ` Daniel Jacobowitz
2008-05-03 19:56         ` Ulrich Weigand
2008-05-11 20:04           ` Ulrich Weigand

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=20080502143603.GH29202@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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