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: [PATCH]: Fix syscall restart handling on sparc*-linux


> 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.


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