From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23771 invoked by alias); 12 Feb 2003 15:00:24 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23764 invoked from network); 12 Feb 2003 15:00:24 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 12 Feb 2003 15:00:24 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18j0GA-0003q9-00; Wed, 12 Feb 2003 11:01:22 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18iyN2-0001um-00; Wed, 12 Feb 2003 10:00:20 -0500 Date: Wed, 12 Feb 2003 15:00:00 -0000 From: Daniel Jacobowitz To: Yu kenny-a18604 Cc: gdb@sources.redhat.com Subject: Re: How to define shared libray symbol file for GDB in cross debug en vironment? Message-ID: <20030212150018.GA7323@nevyn.them.org> Mail-Followup-To: Yu kenny-a18604 , gdb@sources.redhat.com References: <89DEFCC5DB33D411A27F00508BCF8A8206168277@ZCH07EXM05.corp.mot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89DEFCC5DB33D411A27F00508BCF8A8206168277@ZCH07EXM05.corp.mot.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00198.txt.bz2 On Wed, Feb 12, 2003 at 06:59:16PM +0800, Yu kenny-a18604 wrote: > Hi, all: > > Here I have trouble in using GDB. > > I am in a cross-compiler environment. Host is x86 PC and target is xscale-arm. I've been succeeding in connect arm-gdbserver from host PC. Also I loaded symbol file of my binary - elf.out. But now the trouble is: > > There is some shared libraies like libmydb.so I want to load it in host as a symbol file. GDB 'sharedlibrary' command just search this shared-symbol-file in a fixed path - /usr/lib. I could not copy libmydb.so to /usr/lib cause there is a x86 shared library there with the same name. I can't change it now. > > So my question is how to direct gdb-host to load shared library symbol file in specific path, for example, /myhome/target(/libmydb.so)? Look at "set solib-absolute-prefix" and "set solib-search-path". -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer