From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28730 invoked by alias); 3 Mar 2009 01:39:53 -0000 Received: (qmail 28717 invoked by uid 22791); 3 Mar 2009 01:39:52 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-ew0-f179.google.com (HELO mail-ew0-f179.google.com) (209.85.219.179) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Mar 2009 01:39:45 +0000 Received: by ewy27 with SMTP id 27so2073755ewy.24 for ; Mon, 02 Mar 2009 17:39:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.211.194.8 with SMTP id w8mr143033ebp.71.1236044382412; Mon, 02 Mar 2009 17:39:42 -0800 (PST) In-Reply-To: References: <20090303010451.GM3632@adacore.com> Date: Tue, 03 Mar 2009 01:39:00 -0000 Message-ID: Subject: Fwd: how to determine location of source? From: Brendan Miller To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2009-03/txt/msg00013.txt.bz2 Er, I meant to send this to the GDB list originally so I could clarify what I'm trying to do. ---------- Forwarded message ---------- From: Brendan Miller Date: Mon, Mar 2, 2009 at 5:35 PM Subject: Re: how to determine location of source? To: Joel Brobecker On Mon, Mar 2, 2009 at 5:04 PM, Joel Brobecker wrote: > Have a look at "set substitute-path". Right, but before I can use that I need to know what the original path was so I can do the substitution. My binaries come from a daily build, and I can't know what particular path the build machine made them on without inspecting the binaries themselves. I did read the gdb documentation here, scroll down to the Specifying Source Directories section: http://sourceware.org/gdb/download/onlinedocs/gdb_8.html#SEC51 which is why I was posting on the list, because the documentation is incomplete, or maybe I just missed something. It says that GDB inspects the source path embeded in the binary, but I can't find where it says how the user can do it.