From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29398 invoked by alias); 7 Sep 2005 19:06:39 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29353 invoked by uid 22791); 7 Sep 2005 19:06:31 -0000 Received: from e33.co.us.ibm.com (HELO e33.co.us.ibm.com) (32.97.110.131) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 07 Sep 2005 19:06:31 +0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j87J6Q8W246066 for ; Wed, 7 Sep 2005 15:06:27 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j87J6PTr368964 for ; Wed, 7 Sep 2005 13:06:26 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j87J6PtX030383 for ; Wed, 7 Sep 2005 13:06:25 -0600 Received: from dyn9047022123-009047022095.beaverton.ibm.com (dyn9047022123-009047022095.beaverton.ibm.com [9.47.22.95]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j87J6PM1030372; Wed, 7 Sep 2005 13:06:25 -0600 From: Paul Gilliam Reply-To: pgilliam@us.ibm.com To: gdb@sources.redhat.com Subject: Re: ppc64 altivec registers? Date: Wed, 07 Sep 2005 19:06:00 -0000 User-Agent: KMail/1.6.2 Cc: Daniel Jacobowitz , "Reynolds, Terry (Contractor-SIMTECH)" References: <0D21CBD1298D2C4790E2F2B86D96EC1935946E@amr-ex5.ds.amrdec.army.mil> <20050907133001.GA3921@nevyn.them.org> In-Reply-To: <20050907133001.GA3921@nevyn.them.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200509071206.15086.pgilliam@us.ibm.com> X-SW-Source: 2005-09/txt/msg00060.txt.bz2 On Wednesday 07 September 2005 06:30, Daniel Jacobowitz wrote: > On Wed, Sep 07, 2005 at 08:26:57AM -0500, Reynolds, Terry (Contractor-SIMTECH) wrote: > > Hi, > > > > Does anyone here know how to fix the configuration of the kernel so that > > gdb can find the altivec registers? The last time I heard from Andrew > > Cagney he said : > > > > "At the time the code was written it was for a special altivec kernel / > > build / config. Hence it was only enabled when built powerpc-*-*altivec. > > Time has passed and that restriction no longer applies. I'll see about > > removing it." > > Probably, the clean way to do this is through the "optional register > set" interface we defined a couple of months ago. But I haven't had > time to implement that yet. > (One of) The problem(s) with Altivec is with the kernel and not with GDB. The kernel (not sure which version, but I think all) just left out the GETVRREGS and PUTVRREGS parts of the ptrace system call. Even with a patched kernel, there seems to be some problems with Altivec. I am working on them. I hope to turn all the 'FAILS' to 'PASSES' in the the Altivec part of the testsuite (gdb.arch/altivec-abi.exp and gdb.arch/altivec-regs.exp) Here is a link to a experimental patch to the 64-bit kernel that seems to fix the ptrace part of the problem(s): http://ozlabs.org/pipermail/linuxppc64-dev/2005-August/005269.html