From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9378 invoked by alias); 4 Apr 2006 22:54:48 -0000 Received: (qmail 9370 invoked by uid 22791); 4 Apr 2006 22:54:48 -0000 X-Spam-Check-By: sourceware.org Received: from dsl027-180-168.sfo1.dsl.speakeasy.net (HELO sunset.davemloft.net) (216.27.180.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Apr 2006 22:54:46 +0000 Received: from localhost ([127.0.0.1] ident=davem) by sunset.davemloft.net with esmtp (Exim 4.60) (envelope-from ) id 1FQuQK-00030F-PJ; Tue, 04 Apr 2006 15:54:56 -0700 Date: Tue, 04 Apr 2006 22:54:00 -0000 Message-Id: <20060404.155456.38752686.davem@davemloft.net> To: drow@false.org Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH]: Fix thread debugging on Sparc/Linux From: "David S. Miller" In-Reply-To: <20060404224341.GA13358@nevyn.them.org> References: <20060404221448.GA12279@nevyn.them.org> <20060404.152304.38399258.davem@davemloft.net> <20060404224341.GA13358@nevyn.them.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00041.txt.bz2 From: Daniel Jacobowitz Date: Tue, 4 Apr 2006 18:43:41 -0400 > 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'm two shoelaces ahead of you. I'm adding support for PTRACE_PEEKUSER with offset 0 in the kernel in order to cure this. Linux/Sparc is the only platform that doesn't support this and just returning a dummy zero value for this special case is fine with me. There are many more much deeper issues once you get past this, which I plan to get to. I need reliable Linux thread debugging in gdb in order to work on Mono. The checkpoint/restart stuff is also non-functional on Linux/Sparc, but I think that could be due to some bug in event message handling on that platform.