From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4087 invoked by alias); 6 Jul 2006 21:19:54 -0000 Received: (qmail 4078 invoked by uid 22791); 6 Jul 2006 21:19:53 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out4.apple.com (HELO mail-out4.apple.com) (17.254.13.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Jul 2006 21:19:51 +0000 Received: from relay5.apple.com (relay5.apple.com [17.128.113.35]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id k66LJmOM008715; Thu, 6 Jul 2006 14:19:48 -0700 (PDT) Received: from [17.201.21.166] (unknown [17.201.21.166]) by relay5.apple.com (Apple SCV relay) with ESMTP id 758CB324002; Thu, 6 Jul 2006 14:19:48 -0700 (PDT) Date: Thu, 06 Jul 2006 21:19:00 -0000 Content-Transfer-Encoding: 7bit Cc: gdb-patches@sources.redhat.com From: Jason Molenda In-Reply-To: <20060705215606.GF3580@adacore.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Subject: Re: [RFA] New substitute-path commands References: <20060705215606.GF3580@adacore.com> To: Joel Brobecker Mime-Version: 1.0 (Apple Message framework v818) Message-Id: <117176ED-F213-415B-A85E-0D9F15E73E45@apple.com> X-Mailer: Apple Mail (2.818) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00044.txt.bz2 On Jul 5, 2006, at 2:56 PM, Joel Brobecker wrote: > The new commands are: > > (gdb) substitute-path add > (gdb) substitute-path remove > (gdb) substitute-path For what it's worth we added a similar facility to Apple gdb. Our command isn't very fancy: (gdb) apropos pathname-sub set pathname-substitutions -- Set string substitutions to be used when searching for source files show pathname-substitutions -- Show string substitutions to be used when searching for source files It takes a series of directory pairs, e.g. (gdb) set pathname-substitutions /old1 /new1 /old2 /new2 etc. It uses buildargv to parse the arguments so they can be quoted. Making it a standard set/show command gets us MI support for free. J