From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4473 invoked by alias); 19 Jul 2005 03:39:05 -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 4345 invoked by uid 22791); 19 Jul 2005 03:39:01 -0000 Received: from mail-out3.apple.com (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 19 Jul 2005 03:39:01 +0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id j6J3cxup005331 for ; Mon, 18 Jul 2005 20:38:59 -0700 (PDT) Received: from relay3.apple.com (relay3.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.17) with ESMTP id ; Mon, 18 Jul 2005 20:38:59 -0700 Received: from [17.201.22.21] (moleja.apple.com [17.201.22.21]) by relay3.apple.com (8.12.11/8.12.11) with ESMTP id j6J3cvkj010919; Mon, 18 Jul 2005 20:38:58 -0700 (PDT) In-Reply-To: <859254B0-0A3D-4AA1-80F9-1DCE4354E866@decpp.net> References: <859254B0-0A3D-4AA1-80F9-1DCE4354E866@decpp.net> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <28363812-BF6A-4ECA-A1E7-264C1280249D@apple.com> Cc: gdb@sources.redhat.com Content-Transfer-Encoding: quoted-printable From: Jason Molenda Subject: Re: Altivec doesn't work? Date: Tue, 19 Jul 2005 03:39:00 -0000 To: =?ISO-8859-1?Q?D=E9cio_Luiz_Gazzoni_Filho?= X-SW-Source: 2005-07/txt/msg00197.txt.bz2 Daniel was correct that this isn't the right forum for Apple gdb=20=20 questions. Please send these kinds of things to xcode-=20 users@lists.apple.com. You'll want to be more specific about your program that isn't working=20=20 under gdb. For instance, this works fine with gdb-413: #include int main () { vector unsigned int x =3D ((vector unsigned int) vec_splat_u8 (-2)); } (gdb) p/x x $2 =3D {0xfefefefe, 0xfefefefe, 0xfefefefe, 0xfefefefe} (gdb) Please follow up on xcode-users@ if you have any questions or=20=20 problems with the Apple tools. Thanks! Jason On Jul 16, 2005, at 11:00 AM, D=E9cio Luiz Gazzoni Filho wrote: > Hello, > > I have `GNU gdb 6.1-20040303 (Apple version gdb-413)' running on=20=20 > Mac OS X 10.4.2. I wrote some Altivec code and tried to load it=20=20 > into gdb. Although gdb can print the vector registers, they are not=20=20 > updated by any instructions that are run: all regs stay at the=20=20 > value 0x7FFFDEAD7FFFDEAD7FFFDEAD7FFFDEAD. > > I believe it's not a compilation issue, or a processor issue (mine=20=20 > is an MPC7447). Outside of gdb, the code seems to run fine (doesn't=20=20 > give an invalid instruction exception). > > This is my first foray into Altivec programming, so I'm wondering=20=20 > what I'm missing here? This can't be a bug as Google doesn't turn=20=20 > anything up. > > D=E9cio