From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15180 invoked by alias); 10 Jan 2007 02:52:55 -0000 Received: (qmail 15164 invoked by uid 22791); 10 Jan 2007 02:52:54 -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, 10 Jan 2007 02:52:44 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H4TZy-0003YR-7T; Tue, 09 Jan 2007 21:52:42 -0500 Date: Wed, 10 Jan 2007 02:52:00 -0000 From: Daniel Jacobowitz To: Stephen & Linda Smith Cc: gdb@sourceware.org Subject: Re: Stripped files Message-ID: <20070110025242.GB13537@nevyn.them.org> Mail-Followup-To: Stephen & Linda Smith , gdb@sourceware.org References: <45A44256.1070004@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45A44256.1070004@cox.net> 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/msg00162.txt.bz2 On Tue, Jan 09, 2007 at 06:33:10PM -0700, Stephen & Linda Smith wrote: > Am I breaking any assumptions in the GDB code if the code running on a > remote target is stripped and the code that GDB loads on the host has > the symbolic information? In other words is GDB likely to get confused > by this situation? No, this is normal. > If the situation in the above paragraph isn't a problem, would it be a > good idea for GDB to sniff for the file with the symbolic information > via an default extension. For example the file that would be on the > remote target would be something like libfoo.so and the file that that > gdb would look for first on the host system would be > libfoo.so-withsymbols and then fi that didn't exist it would look for > libfoo.so. > > What do you think of that? The solution we've used for this before is .gnu_debuglink (see the GDB and binutils manuals for more about that). You can also use sysroot / solib-search-path if the debug symbol file has the same name as the target file. -- Daniel Jacobowitz CodeSourcery