From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11940 invoked by alias); 24 Jan 2007 12:56:59 -0000 Received: (qmail 11910 invoked by uid 22791); 24 Jan 2007 12:56:57 -0000 X-Spam-Check-By: sourceware.org Received: from szxga01-in.huawei.com (HELO szxga01-in.huawei.com) (61.144.161.53) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 24 Jan 2007 12:56:53 +0000 Received: from huawei.com (szxga01-in [172.24.2.3]) by szxga01-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0JCD008OEI5ZNG@szxga01-in.huawei.com> for gdb@sourceware.org; Wed, 24 Jan 2007 20:46:47 +0800 (CST) Received: from huawei.com ([172.24.1.24]) by szxga01-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0JCD00099I5ZX8@szxga01-in.huawei.com> for gdb@sourceware.org; Wed, 24 Jan 2007 20:46:47 +0800 (CST) Received: from DHEERAJ3666 ([10.18.20.123]) by szxml04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTPA id <0JCD003UNI5UUX@szxml04-in.huawei.com> for gdb@sourceware.org; Wed, 24 Jan 2007 20:46:47 +0800 (CST) Date: Wed, 24 Jan 2007 12:56:00 -0000 From: "Dheeraj V.S." Subject: RE: Single stepping inside shared lib functions on ARM In-reply-to: <20070124121200.GA1222@nevyn.them.org> To: gdb@sourceware.org Reply-to: dheerajvs@huawei.com Message-id: <000c01c73fb5$b345e040$7b14120a@china.huawei.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 11 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT 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/msg00309.txt.bz2 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. > 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 Dheeraj --