From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26214 invoked by alias); 16 Mar 2006 02:11:19 -0000 Received: (qmail 26206 invoked by uid 22791); 16 Mar 2006 02:11:18 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 16 Mar 2006 02:11:17 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FJhxL-00084Z-Bb; Wed, 15 Mar 2006 21:11:15 -0500 Date: Thu, 16 Mar 2006 03:00:00 -0000 From: Daniel Jacobowitz To: Nai-Hsien Cc: gdb@sourceware.org Subject: Re: Debugging a shared library through gdbserver Message-ID: <20060316021115.GA31000@nevyn.them.org> Mail-Followup-To: Nai-Hsien , gdb@sourceware.org References: <063201c647e2$b2c39160$0102000a@loop.com.tw> <20060315034555.GA1813@nevyn.them.org> <064501c647f8$39e135c0$0102000a@loop.com.tw> <20060315142546.GC12258@nevyn.them.org> <066d01c64893$f5e5ac60$0102000a@loop.com.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <066d01c64893$f5e5ac60$0102000a@loop.com.tw> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00088.txt.bz2 On Thu, Mar 16, 2006 at 08:52:54AM +0800, Nai-Hsien wrote: > > > > > > # my shared library is in lib/ > > > (gdb) set solib-absolute-prefix lib > > > > That's not what solib-absolute-prefix is for. You need to point it at > > the root of a filesystem image that matches the one running on your > > target, so that GDB can open /lib/ld.so.1 and > > /usr/lib/libfoo.so. I usually use NFS for this. If you > > do that... > Unfornately, I am using TFTP to download a RAM disk image to my board and > run it. Is there any other solution for the case? Set up a similar unpacked image on your host, possibly with more debug symbols. But use the same layout. /lib /usr/lib et cetera. -- Daniel Jacobowitz CodeSourcery