From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23209 invoked by alias); 11 Feb 2005 14:13:31 -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 23161 invoked from network); 11 Feb 2005 14:13:27 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 11 Feb 2005 14:13:27 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1CzbXy-0004Vn-H6; Fri, 11 Feb 2005 09:13:26 -0500 Date: Fri, 11 Feb 2005 15:45: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: <20050211141325.GA17247@nevyn.them.org> Mail-Followup-To: Tim Harvey , Anil Gunturu , gdb@sources.redhat.com References: <20050211042809.GA31483@nevyn.them.org> <20050211052941.99098.qmail@web30509.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050211052941.99098.qmail@web30509.mail.mud.yahoo.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-02/txt/msg00077.txt.bz2 On Thu, Feb 10, 2005 at 09:29:41PM -0800, Tim Harvey wrote: > $ cd gdb-6.3 > $ ./configure --target=arm-linux > $ make > $ file gdb/gdb > gdb/gdb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for > GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped > $ cd gdb/gdbserver > $ export CC=/usr/local/bin/arm-linux-gcc > $ ./configure --host=arm-linux > $ make > $ file gdbserver > gdbserver: ELF 32-bit MSB executable, ARM, version 1 (ARM), for GNU/Linux > 2.4.3, dynamically linked (uses shared libs), not stripped > > When trying to execute my app on the target with this gdbserver I get: > > # gdbserver foo:1234 myApp > gdbserver: error while loading shared libraries: libthread_db.so.1: cannot open > shared object file: No such file or directory > > My target's glibc doesn't have a libthread_db and I'm not really sure what this > even is vs libthread. There's one in your cross development environment or gdbserver wouldn't have even built. You have to use the same libraries in your cross environment and on your target if you want things to work... > I don't know if the gdbserver that the snapgear-3.1.1 distro is building is > correct or not. When I use it I get the 'Reply contains invalid hex digit 59' > error and I'm still not understanding if this is pointing to a problem with > gdbserver or the gdb host. Are you using it with the arm-linux-gdb you built above? In your first message you were using your host GDB. -- Daniel Jacobowitz CodeSourcery, LLC