From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7066 invoked by alias); 14 Jul 2006 13:06:05 -0000 Received: (qmail 7058 invoked by uid 22791); 14 Jul 2006 13:06:05 -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; Fri, 14 Jul 2006 13:06:02 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G1NMl-0006RF-1u; Fri, 14 Jul 2006 09:05:59 -0400 Date: Fri, 14 Jul 2006 13:06:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Joel Brobecker , gdb@sources.redhat.com Subject: Re: [RFA] New substitute-path commands Message-ID: <20060714130558.GA24712@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Joel Brobecker , gdb@sources.redhat.com References: <20060707191203.GD971@adacore.com> <20060710054027.GF971@adacore.com> <20060710214706.GA2390@adacore.com> <20060710215114.GA31444@nevyn.them.org> <20060710215630.GB2390@adacore.com> <20060710215839.GA31772@nevyn.them.org> <20060713212746.GA1519@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00082.txt.bz2 On Fri, Jul 14, 2006 at 01:37:18PM +0300, Eli Zaretskii wrote: > > Date: Thu, 13 Jul 2006 14:27:46 -0700 > > From: Joel Brobecker > > > > The interface is as follow: > > > > (gdb) set substitute-path FROM TO > > (gdb) unset substitute-path [FROM] > > (gdb) show substitute-path > > > > The "set" command will add a substitution rule. > > If this _adds_ a rule, then "set SOMETHING" is not a good UI, IMO. > How about just "substitute-path", similar to "dir", which also _adds_ > a directory? This was my suggestion, so I'll defend it :-) I think of it as set "the substitution path for FROM" to "TO". The parallel is set env VAR VALUE, which sets the environment variable VAR to VALUE. -- Daniel Jacobowitz CodeSourcery