From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19395 invoked by alias); 11 Feb 2005 04:28:20 -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 18755 invoked from network); 11 Feb 2005 04:28:12 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 11 Feb 2005 04:28:12 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1CzSPZ-0008Qe-VB; Thu, 10 Feb 2005 23:28:10 -0500 Date: Fri, 11 Feb 2005 05:30:00 -0000 From: Daniel Jacobowitz To: Tim Harvey Cc: Anil Gunturu , gdb@sources.redhat.com Subject: Re: howto build gdb / gdbserver for x86 host with arm-linux target? Message-ID: <20050211042809.GA31483@nevyn.them.org> Mail-Followup-To: Tim Harvey , Anil Gunturu , gdb@sources.redhat.com References: <20050211024733.30134.qmail@web30706.mail.mud.yahoo.com> <20050211040403.71623.qmail@web30510.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050211040403.71623.qmail@web30510.mail.mud.yahoo.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-02/txt/msg00074.txt.bz2 On Thu, Feb 10, 2005 at 08:04:03PM -0800, Tim Harvey wrote: > > --- Anil Gunturu wrote: > > > You don't need symbols on the target when running gdbserver. So it's ok to > > strip the symbols. > > right, I realize that the exe on the target can be stripped, but a non-stripped > version will need to exist on the host and I assume it can't hurt to have the > target version non stripped as well right? > > > You need to export the arm-gcc before running ./configure. For example: > > export CC=${arm-compiler-path}/arm-gcc > > configure --target=arm-linux. > > -Anil > > Ah, so basically autoconf doesn't handle cross compiling and you always need to > specify the compiler manually. You're getting confused. Don't specify CC to build GDB. Do specify --target, however. The error you got was from using an i386 targeted gdb with an ARM stub. Do specify --host and CC to build gdbserver, but it sounds like you already have gdbserver. -- Daniel Jacobowitz CodeSourcery, LLC