From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8497 invoked by alias); 24 Mar 2006 21:21:12 -0000 Received: (qmail 8487 invoked by uid 22791); 24 Mar 2006 21:21:11 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 24 Mar 2006 21:21:10 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FMtiS-00035v-Pk; Fri, 24 Mar 2006 16:21:05 -0500 Date: Tue, 28 Mar 2006 10:43:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: Andreas Schwab , John Fodor , gdb@sourceware.org Subject: Re: gdb and multi-threaded (NPTL) programs Message-ID: <20060324212104.GA2812@nevyn.them.org> Mail-Followup-To: Jim Blandy , Andreas Schwab , John Fodor , gdb@sourceware.org References: <44244F1F.6030108@mac.com> <44245BC3.8010706@mac.com> <8f2776cb0603241315o22cd4757kb897425cd7606219@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f2776cb0603241315o22cd4757kb897425cd7606219@mail.gmail.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00182.txt.bz2 On Fri, Mar 24, 2006 at 01:15:26PM -0800, Jim Blandy wrote: > So I'm agreeing with Daniel, I guess: it's a kernel bug. But it > sounds to me like Daniel is saying that you need to find some change > to the non-debugging behavior that would also fix the debugging > behavior, which I don't agree with. In theory, you should change the > debugging behavior and have no effect on the syscall's interface to > the code that calls it. That's not what I said at all. I said that you'd need to change the kernel source code for the syscall to not return -EINTR, but instead return some new code; I'm certainly not suggesting that the new code ever be returned to userspace! There is plenty of precedent for the construct I describe in the Linux signal handling implementation. -- Daniel Jacobowitz CodeSourcery