This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Add syscall restart handling for MIPS GNU/Linux
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Wed, 13 Jun 2007 14:49:01 -0400
- Subject: Re: [rfc] Add syscall restart handling for MIPS GNU/Linux
- References: <20070521135647.GB8161@caradoc.them.org>
On Mon, May 21, 2007 at 09:56:47AM -0400, Daniel Jacobowitz wrote:
> This patch fixes the interrupt.exp and mi*-syn-frame.exp tests for
> native MIPS GNU/Linux. Just like i386 (and most other Linux
> platforms), MIPS has a ptrace-accessible "register" which stores the
> error code for restartable syscalls. If a signal handler is run then
> this becomes an EINTR return value; if no signal handler is run, then
> the syscall is restarted by backing up $pc two instructions. This
> causes obvious trouble if GDB tries to call a function at some other
> location during a restartable syscall. We have to clear the register
> before changing $pc.
I checked this in.
--
Daniel Jacobowitz
CodeSourcery