From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27341 invoked by alias); 17 Jul 2003 21:07:10 -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 27304 invoked from network); 17 Jul 2003 21:06:55 -0000 Received: from unknown (HELO home.ringle.org) (12.153.69.24) by sources.redhat.com with SMTP; 17 Jul 2003 21:06:55 -0000 Received: by home.ringle.org (Postfix, from userid 501) id DE226B8251; Thu, 17 Jul 2003 17:06:47 -0400 (EDT) From: Jon Ringle To: gdb@sources.redhat.com Subject: Re: cross-debugging with gdbserver, why can't gdb find breakpoint function? Date: Thu, 17 Jul 2003 21:07:00 -0000 User-Agent: KMail/1.5 References: <20030717203016.GA28000@nevyn.them.org> <200307171637.28781.jon.ringle@comdial.com> In-Reply-To: <200307171637.28781.jon.ringle@comdial.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307171706.47727.jon.ringle@comdial.com> X-SW-Source: 2003-07/txt/msg00226.txt.bz2 On Thursday 17 July 2003 04:37 pm, Jon Ringle wrote: > On Thursday 17 July 2003 04:30 pm, Daniel Jacobowitz wrote: > > On Thu, Jul 17, 2003 at 04:20:38PM -0400, Jon Ringle wrote: > > > On Thursday 17 July 2003 04:00 pm, David Wuertele wrote: > > > > Why is gdb trying to open /lib/ld.so.1? That /lib directory has > > > > nothing to do with the target libs. The target libs can be found in > > > > /nfsroot/lib. How do I tell gdb to look there instead of /lib? > > > > > > this worked for me on my arm crossgdb: > > > > > > (gdb) set solib-absolute-prefix /dev/null > > > (gdb) set solib-search-path /nfsroot/lib > > > > Please, don't do it that way. For David's setup the right way is: > > (gdb) set solib-absolute-prefix /nfsroot > > > > If you can point to somewhere you looked in the documentation and > > didn't see this, I'd love to improve it. > > (gdb) help set solib-search-path > Set the search path for loading non-absolute shared library symbol files. > This takes precedence over the environment variables PATH and > LD_LIBRARY_PATH. > > The help here doesn't imply that /lib will be suffixed to the > solib-search-path setting... Ahh... I think I see now: (gdb) help set solib-search-path Set the search path for loading non-absolute shared library symbol files. This takes precedence over the environment variables PATH and LD_LIBRARY_PATH. (gdb) help set solib-absolute-prefix Set prefix for loading absolute shared library symbol files. For other (relative) files, you can add values using `set solib-search-path'. The term 'absolute' here refers to an 'absolute path'. Is this correct? Jon