From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8197 invoked by alias); 8 Nov 2002 23:15:59 -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 8190 invoked from network); 8 Nov 2002 23:15:58 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 8 Nov 2002 23:15:58 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18AKEM-00046Q-00; Fri, 08 Nov 2002 19:16:10 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18AIMx-0004gw-00; Fri, 08 Nov 2002 18:16:55 -0500 Date: Fri, 08 Nov 2002 15:15:00 -0000 From: Daniel Jacobowitz To: Kevin Sharpie Endres Cc: gdb@sources.redhat.com Subject: Re: Question about resolving symbol information from so's loaded via dlopen. Message-ID: <20021108231655.GA17862@nevyn.them.org> Mail-Followup-To: Kevin Sharpie Endres , gdb@sources.redhat.com References: <43CB1396676FD4119F03001083FD299401547970@neptune.kirkland.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43CB1396676FD4119F03001083FD299401547970@neptune.kirkland.local> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00093.txt.bz2 On Fri, Nov 08, 2002 at 03:02:50PM -0800, Kevin Sharpie Endres wrote: > in GDB 5.2.1. > > I am attempting to debug using a core from an application that loads an .so > via dlopen using an absolute location. When i target the core in gdb - the > .so's attempt to load using the absolute path (the core file was not > generated on my machine) and fail. > > How do I work around this? > > Thanks in advance. > > :]k Probably the best thing to do is to set up a directory tree that looks like the target machine somewhere, and set solib-absolute-prefix to point to it. That is, /opt/tst/lib/libc.so.6 /opt/tst/lib/ld.so.1 /opt/tst/usr/lib/appname/plugin.so (gdb) set solib-absolute-prefix /opt/tst -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer