From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16752 invoked by alias); 21 Jul 2006 14:47:23 -0000 Received: (qmail 16742 invoked by uid 22791); 21 Jul 2006 14:47:22 -0000 X-Spam-Check-By: sourceware.org Received: from 203.197.88.2.ILL-PUNE.static.vsnl.net.in (HELO marvin.codito.net) (203.197.88.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Jul 2006 14:47:18 +0000 Received: from [192.168.100.141] ([220.225.32.98]) (authenticated bits=0) by marvin.codito.net (8.13.5/8.13.5/Debian-3) with ESMTP id k6LErGMY029976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 21 Jul 2006 20:23:19 +0530 Message-ID: <44C0E7F0.1010506@codito.com> Date: Fri, 21 Jul 2006 16:14:00 -0000 From: Kunal Parmar Reply-To: kunal.parmar@codito.com User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Re: shared library symbols not loaded automatically References: <44B53A5D.7090505@codito.com> <20060712181525.GA26898@nevyn.them.org> In-Reply-To: <20060712181525.GA26898@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00144.txt.bz2 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 Jacobowitz wrote: > 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. > > -- Kunal Parmar Software Developer, Codito Technologies Pvt. Ltd. (www.codito.com) Office: +91 20 26051367 ext. 133 Mobile: +91 98230 28171