From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7863 invoked by alias); 4 Apr 2006 22:43:44 -0000 Received: (qmail 7855 invoked by uid 22791); 4 Apr 2006 22:43:44 -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; Tue, 04 Apr 2006 22:43:43 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FQuFR-0003U7-FN; Tue, 04 Apr 2006 18:43:41 -0400 Date: Tue, 04 Apr 2006 22:43:00 -0000 From: Daniel Jacobowitz To: "David S. Miller" Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH]: Fix thread debugging on Sparc/Linux Message-ID: <20060404224341.GA13358@nevyn.them.org> Mail-Followup-To: "David S. Miller" , gdb-patches@sources.redhat.com References: <20060404220648.GA11871@nevyn.them.org> <20060404.150859.58684361.davem@davemloft.net> <20060404221448.GA12279@nevyn.them.org> <20060404.152304.38399258.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060404.152304.38399258.davem@davemloft.net> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00040.txt.bz2 On Tue, Apr 04, 2006 at 03:23:04PM -0700, David S. Miller wrote: > I'm just running through the entire testsuite right now on > sparc-*-linux* trying to fix every failure that shows up. Great! In that case, I can save you one bit of debugging: a lot of thread tests are broken on SPARC, because linux_nat_thread_alive (or something with a similar name) tries to use PTRACE_PEEKUSR to test whether a thread is alive, but the SPARC ptrace interface doesn't implement that, only PTRACE_GETREGS. I keep meaning to try changing that. Maybe to something like reading memory, and allowing an actual memory access error to be "yes, I'm alive" and ESRCH (is that the right error code?) to mean "no, I'm gone". This is in the Debian BTS, but I never fixed it. Bad me. -- Daniel Jacobowitz CodeSourcery