From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20043 invoked by alias); 12 Jul 2006 18:15:32 -0000 Received: (qmail 20034 invoked by uid 22791); 12 Jul 2006 18:15:31 -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; Wed, 12 Jul 2006 18:15:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G0jF7-00070U-6t; Wed, 12 Jul 2006 14:15:25 -0400 Date: Wed, 12 Jul 2006 18:15:00 -0000 From: Daniel Jacobowitz To: Kunal Parmar Cc: gdb@sources.redhat.com Subject: Re: shared library symbols not loaded automatically Message-ID: <20060712181525.GA26898@nevyn.them.org> Mail-Followup-To: Kunal Parmar , gdb@sources.redhat.com References: <44B53A5D.7090505@codito.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44B53A5D.7090505@codito.com> 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/msg00055.txt.bz2 On Wed, Jul 12, 2006 at 11:37:25PM +0530, Kunal Parmar wrote: > Hello, > I am trying to debug a program which uses shared libraries. > My host is i386-linux and target is arm-linux. > While debugging, gdb shows me the shared libraries used by my program > but it does not load the symbols automatically (auto-solib-add is set). > I have to explicitly use the sharedlibrary command after which the shared > library symbols are read in. It looks like you need to set solib-absolute-prefix. > >Reading symbols from /lib/libc.so.6...done. > >Loaded symbols for /lib/libc.so.6 This is probably loading your system's /lib/libc.so.6. -- Daniel Jacobowitz CodeSourcery