From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14934 invoked by alias); 6 Oct 2003 19:46:12 -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 14925 invoked from network); 6 Oct 2003 19:46:10 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 6 Oct 2003 19:46:10 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 0D8262B89; Mon, 6 Oct 2003 15:46:09 -0400 (EDT) Message-ID: <3F81C680.90203@redhat.com> Date: Mon, 06 Oct 2003 19:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mauricio Alvarez Mesa Cc: gdb Subject: Re: error using gdb 5.3 target powerpc-eabisimaltivec References: <3F81BF3B.5080205@ac.upc.es> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00104.txt.bz2 > > > I am using gdb 5.3 for debugging applications developed for a powerpc-aebisimaltivec target on a linux-x86 host > > I am using gcc-3.3.1, binutils-2.14.90.0.6 and newlib-1.11.0 > > But I obtain an error when try to run my program under gdb > > -------------------- > $ powerpc-eabisimaltivec-gcc -o hello -g hello.c > > hello.c is a simple hello world program using printf and without any altivec vector instructions > > $ powerpc-eabisimaltivec-gdb hello > GNU gdb 5.3 > Copyright 2002 Free Software Foundation, Inc. > ... > This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-eabisimaltivec"... > > (gdb) target sim > Connected to the simulator. > > (gdb) load > > (gdb) run > > Starting program: /users/scratch/alvarez/altivec/tutorial/hello > cpu 1, cia 0x100010cc: program interrupt - illegal instruction > > Program terminated with signal ?, Unknown signal. > The program no longer exists. > [Switching to process 0] > (gdb) Does GDB 5.3 include altivec support? I suspect you want GDB 6.0 (or GDB's current mainline), I also think the tuple is "powerpc-eabialtivec". Andrew