From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2702 invoked by alias); 27 Oct 2005 14:41:27 -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 2642 invoked by uid 22791); 27 Oct 2005 14:41:18 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 27 Oct 2005 14:41:18 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EV8wO-0006H0-1P; Thu, 27 Oct 2005 10:41:16 -0400 Date: Thu, 27 Oct 2005 14:41:00 -0000 From: Daniel Jacobowitz To: frank@betaversion.net, gdb@sources.redhat.com Subject: Re: Remote debugging and dynamic libraries Message-ID: <20051027144115.GA24055@nevyn.them.org> Mail-Followup-To: frank@betaversion.net, gdb@sources.redhat.com References: <20051027105200.0cya97mnpnwo84sg@admin.betaversion.net> <20051027143943.GA23938@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051027143943.GA23938@nevyn.them.org> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00163.txt.bz2 Sorry for the duplicate, fat-fingered the list address last time. On Thu, Oct 27, 2005 at 10:52:00AM +0200, frank@betaversion.net wrote: > Hello, > > i'm trying to remote debug a program running on an arm system running > linux but i ran into various problems. If i interrupt the > debugged program i can't get symbolic information where it stopped. > Also backtraces don't seem to work. > > frank@linux:~/> /usr/local/bin/arm-linux-gdb > GNU gdb 6.3 > This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux". > (gdb) target remote 192.168.1.133:5555 > Remote debugging using 192.168.1.133:5555 > 0x400028b0 in ?? () > (gdb) symbol-file test Don't do this. Use "file", not "symbol-file". Can you tell me where you found anything which suggested that you should use symbol-file? This bug is reported several times a year, and I still don't know where the incorrect documentation is - I don't think it's part of GDB. Without an "exec file" loaded, which symbol-file does not do, GDB won't find the dynamic loader or be able to load shared libraries. > 1) > set solib-absolute-prefix /usr/local/arm/arm-linux/ This is the correct way - IFF the directory under that path looks like a root filesystem. If it's laid out like an old-style cross toolchain, this may not work. Paths should match the paths on the target. > nor: > 2) > set solib-absolute-prefix /dev/null > set solib-search-path /usr/local/arm/arm-linux/lib This is not the correct way nowadays. -- Daniel Jacobowitz CodeSourcery, LLC