This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] Add syscall restart handling for MIPS GNU/Linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]