From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5287 invoked by alias); 22 Jul 2006 21:07:49 -0000 Received: (qmail 5277 invoked by uid 22791); 22 Jul 2006 21:07:48 -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; Sat, 22 Jul 2006 21:07:46 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G4OhJ-0005m1-MW; Sat, 22 Jul 2006 17:07:41 -0400 Date: Sat, 22 Jul 2006 23:17:00 -0000 From: Daniel Jacobowitz To: Paul Koning Cc: gdb@sources.redhat.com Subject: Re: shared library symbols not loaded automatically Message-ID: <20060722210741.GA22179@nevyn.them.org> Mail-Followup-To: Paul Koning , gdb@sources.redhat.com References: <44B53A5D.7090505@codito.com> <20060712181525.GA26898@nevyn.them.org> <44C0E7F0.1010506@codito.com> <20060722200909.GA21091@nevyn.them.org> <17602.36034.46000.74380@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17602.36034.46000.74380@gargle.gargle.HOWL> User-Agent: Mutt/1.5.11+cvs20060403 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-07/txt/msg00151.txt.bz2 On Sat, Jul 22, 2006 at 04:38:26PM -0400, Paul Koning wrote: > >>>>> "Daniel" == Daniel Jacobowitz writes: > > Daniel> On Fri, Jul 21, 2006 at 08:12:56PM +0530, Kunal Parmar wrote: > >> Hi Daniel, I am not clear how setting solib-absolute-prefix will > >> solve this problem. The manual says that it is used as a prefix > >> for searching the libraries at runtime. When I use the command > >> sharedlibrary at the gdb prompt, the libraries are correctly > >> loaded. Doesn't this mean that I do not need to set the > >> solib-absolute-prefix?? > > Daniel> Not if they're the wrong libraries. > > Daniel> You may be loading literally "/lib/libc.so.6" on your host - > Daniel> an i386 library. > > It would be a good feature if GDB didn't do that for crossbuilds, > because it can't possibly be correct... Yes, I agree. I invite you to implement it before I get around to it :-) -- Daniel Jacobowitz CodeSourcery