From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21033 invoked by alias); 24 Jan 2007 13:07:41 -0000 Received: (qmail 20922 invoked by uid 22791); 24 Jan 2007 13:07:40 -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, 24 Jan 2007 13:07:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H9hqf-00010L-Dy; Wed, 24 Jan 2007 08:07:33 -0500 Date: Wed, 24 Jan 2007 13:07:00 -0000 From: Daniel Jacobowitz To: "Dheeraj V.S." Cc: gdb@sourceware.org Subject: Re: Single stepping inside shared lib functions on ARM Message-ID: <20070124130733.GB3676@nevyn.them.org> Mail-Followup-To: "Dheeraj V.S." , gdb@sourceware.org References: <20070124121200.GA1222@nevyn.them.org> <000c01c73fb5$b345e040$7b14120a@china.huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000c01c73fb5$b345e040$7b14120a@china.huawei.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00311.txt.bz2 On Wed, Jan 24, 2007 at 06:16:42PM +0530, Dheeraj V.S. wrote: > On Wed, Jan 24, 2007 17:42, Daniel Jacobowitz wrote: > > On Wed, Jan 24, 2007 at 04:33:15PM +0530, Dheeraj V.S. wrote: > > > (gdb) set solib-absolute-prefix /home/dheeraj > > > (gdb) set solib-search-path /home/dheeraj > > > > Where are your libraries on the host system? > The library is at /home/dheeraj/ > This directory is mounted on the target. The same directory is used on the > host too. I asked where all your libraries were, not just the test one. If they are using the same paths on your host and target, don't set solib-absolute-prefix to anything. > > What does "info shared" say when you are stopped at main? > (gdb) info share > warning: .dynamic section for "/usr/arm/sysroot/lib/libc.so.6" is not at the > expected address > warning: .dynamic section for "/usr/arm/sysroot/lib/ld-linux.so.2" is not at > the expected address > From To Syms Read Shared Object Library > 0x400224b4 0x40022630 No /home/dheeraj/libgdb_test.so.1 > 0x40041910 0x40118758 No /usr/arm/sysroot/lib/libc.so.6 > 0x40000b80 0x40012bc8 No /usr/arm/sysroot/lib/ld-linux.so.2 With solib-absolute-prefix set, GDB will search for "/usr/arm/sysroot/lib/libc.so.6" at "/home/dheeraj/usr/arm/sysroot/lib/libc.so.6". If that's not what you want, you probably shouldn't set it. Also, that warning means that the libraries GDB found on your host are not the same versions as the ones on your target. They have to be the same versions, or it can not step into them. -- Daniel Jacobowitz CodeSourcery