From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3142 invoked by alias); 23 Jan 2004 21:31:06 -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 3135 invoked from network); 23 Jan 2004 21:31:05 -0000 Received: from unknown (HELO mail-out4.apple.com) (17.254.13.23) by sources.redhat.com with SMTP; 23 Jan 2004 21:31:05 -0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.10/8.12.9) with ESMTP id i0NLV4cb007419 for ; Fri, 23 Jan 2004 13:31:04 -0800 (PST) Received: from relay2.apple.com (relay2.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.6) with ESMTP id for ; Fri, 23 Jan 2004 13:31:04 -0800 Received: from [17.201.22.245] (inghji6.apple.com [17.201.22.245]) by relay2.apple.com (8.12.10/8.12.9) with ESMTP id i0NLUmPx018670 for ; Fri, 23 Jan 2004 21:30:49 GMT Mime-Version: 1.0 (Apple Message framework v609) In-Reply-To: <1074884800.30040.ezmlm@sources.redhat.com> References: <1074884800.30040.ezmlm@sources.redhat.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <02AC0E89-4DEC-11D8-9898-000A958F4C44@apple.com> Content-Transfer-Encoding: 7bit From: Jim Ingham Subject: Re: handling of absolute source file paths (feature wish/implementation idea) Date: Fri, 23 Jan 2004 21:31:00 -0000 To: gdb@sources.redhat.com X-SW-Source: 2004-01/txt/msg00277.txt.bz2 Klee did something similar a while back. He added a "set pathname-substitutions" command that took a list of pairs of path components - a "from" and a "to" element. As it went looking for source files, if it saw the "from" element of any pair in the full path name, it would replace it with the "to" element of that pair, and try to open that. This command currently only edits from the start of the path. So you could do source-absolute-prefix by giving "/" as the from, and "/tmp/whatever" as the to. In our case, we more often had "/SourceMount/Projects/ProjectName" as the from, and ~releng/ReleaseName/ReleaseVersion/Projects/ProjectName as the "to". The source changes are not that big, since we just did a straight substitution, not any kind of regsub thingie... Some people use this, though locally I think more folks just make links on their local machine to make up a source tree that looks like what the build & integration folks use on their builder machines. Jim On Jan 23, 2004, at 11:06 AM, gdb-digest-help@sources.redhat.com wrote: >> (although an immediate source-absolute-prefix shouldn't hurt). >> >> 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. > > -- Jim Ingham jingham@apple.com Developer Tools Apple Computer