[PATCH]: Fix syscall restart handling on sparc*-linux
Mark Kettenis
mark.kettenis@xs4all.nl
Sun May 11 22:11:00 GMT 2008
> Date: Sun, 11 May 2008 13:18:50 -0700 (PDT)
> From: David Miller <davem@davemloft.net>
>
> I've just added a change to the Linux kernel so that gdb can cancel
> system call restarting just like powerpc and x86 do under Linux.
>
> I've done this by adding a piece of software state, a single bit, into
> the processor state register provided to the debugger, that was
> otherwise totally unused before.
Clever!
> The write_pc target method simply clears the bit, which does nothing
> on previous kernels, but cancels syscall restart on newer kernels.
>
> This fixes 40 or so testsuite failures.
>
> Ok to commit?
I wouldn't mind a #define for these bits. Otherwise, it looks fine to me.
> 2008-05-11 David S. Miller <davem@davemloft.net>
>
> * sparc-linux-tdep.c (sparc_linux_write_pc): New.
> (sparc32_linux_init_abi): Register it.
> * sparc64-linux-tdep.c (sparc64_linux_write_pc): New.
> (sparc64_linux_init_abi): Register it.
More information about the Gdb-patches
mailing list