This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH]: Fix syscall restart handling on sparc*-linux
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: davem at davemloft dot net
- Cc: gdb-patches at sourceware dot org, roland at redhat dot com
- Date: Sun, 11 May 2008 22:33:34 +0200 (CEST)
- Subject: Re: [PATCH]: Fix syscall restart handling on sparc*-linux
- References: <20080511.131850.175173142.davem@davemloft.net>
> 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.