From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14281 invoked by alias); 11 May 2008 20:34:16 -0000 Received: (qmail 14269 invoked by uid 22791); 11 May 2008 20:34:15 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 11 May 2008 20:33:58 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.1/8.14.1) with ESMTP id m4BKXYX5007879; Sun, 11 May 2008 22:33:34 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.1/8.14.1/Submit) id m4BKXYXQ010781; Sun, 11 May 2008 22:33:34 +0200 (CEST) Date: Sun, 11 May 2008 22:11:00 -0000 Message-Id: <200805112033.m4BKXYXQ010781@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: davem@davemloft.net CC: gdb-patches@sourceware.org, roland@redhat.com In-reply-to: <20080511.131850.175173142.davem@davemloft.net> (message from David Miller on Sun, 11 May 2008 13:18:50 -0700 (PDT)) Subject: Re: [PATCH]: Fix syscall restart handling on sparc*-linux References: <20080511.131850.175173142.davem@davemloft.net> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00365.txt.bz2 > Date: Sun, 11 May 2008 13:18:50 -0700 (PDT) > From: David Miller > > 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 > > * 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.