From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2063 invoked by alias); 4 Apr 2006 23:52:49 -0000 Received: (qmail 2053 invoked by uid 22791); 4 Apr 2006 23:52:49 -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 23:52:48 +0000 Received: from localhost ([127.0.0.1] ident=davem) by sunset.davemloft.net with esmtp (Exim 4.60) (envelope-from ) id 1FQvKJ-0001TD-1q; Tue, 04 Apr 2006 16:52:47 -0700 Date: Tue, 04 Apr 2006 23:52:00 -0000 Message-Id: <20060404.165246.93473545.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: <20060404.161216.67971337.davem@davemloft.net> References: <20060404.155456.38752686.davem@davemloft.net> <20060404231102.GA14012@nevyn.them.org> <20060404.161216.67971337.davem@davemloft.net> 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/msg00047.txt.bz2 From: "David S. Miller" Date: Tue, 04 Apr 2006 16:12:16 -0700 (PDT) > From: Daniel Jacobowitz > Date: Tue, 4 Apr 2006 19:11:02 -0400 > > > On Tue, Apr 04, 2006 at 03:54:56PM -0700, David S. Miller wrote: > > > 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. > > > > Is gdb a 32-bit or 64-bit binary? I bet there's problems with a > > 32-bit binary. At least one is that the event message is > > stored as a long. > > Yep, that's exactly where I think the bug is, in the 32-bit > compat layer on sparc64. I just confirmed that after fixing this in the kernel ptrace() implementation, checkpointing works fine for 32-bit gdb running on 64-bit kernel for Linux/Sparc.