From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 398 invoked by alias); 23 Jan 2004 13:02:19 -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 386 invoked from network); 23 Jan 2004 13:02:16 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sources.redhat.com with SMTP; 23 Jan 2004 13:02:16 -0000 Received: from zaretski (pns03-197-152.inter.net.il [80.230.197.152]) by legolas.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id BDP09518; Fri, 23 Jan 2004 15:02:09 +0200 (IST) Date: Fri, 23 Jan 2004 13:02:00 -0000 From: "Eli Zaretskii" To: gdb@sources.redhat.com Message-Id: <7494-Fri23Jan2004145824+0200-eliz@elta.co.il> In-reply-to: <20040122201642.GA26573@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 22 Jan 2004 15:16:42 -0500) Subject: Re: handling of absolute source file paths (feature wish/implementation idea) Reply-to: Eli Zaretskii References: <200401221601.17594.gernot.hillier@siemens.com> <1659-Thu22Jan2004192206+0200-eliz@elta.co.il> <40101A49.1080902@gnu.org> <20040122201642.GA26573@nevyn.them.org> X-SW-Source: 2004-01/txt/msg00267.txt.bz2 > Date: Thu, 22 Jan 2004 15:16:42 -0500 > From: Daniel Jacobowitz > > Now what would be really nice would be a manual chapter referencing all > of these. Is there really a reason to describe them all in one place? I'm not sure. > > BTW, wasn't there a mechanism for editing/replacing part of the source > > prefix added, or did that get lost? > > Now that sounds like a great idea. I can't see it in the source, > though, and it doesn't ring a bell. How about if we make a mode which will do that editing for us? E.g., imagine that we have a file whose name is recorded in the debug info as /a/b/c/d/e/z.c, and some search path. Then GDB would first try the literal /a/b/c/d/e/z.c, then, for each directory X that's mentioned in the search path, it will try these: X/z.c X/a/b/c/d/e/z.c X/b/c/d/e/z.c X/c/d/e/z.c X/d/e/z.c X/e/z.c How does this sound?