From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18733 invoked by alias); 26 Jun 2006 02:44:33 -0000 Received: (qmail 18688 invoked by uid 22791); 26 Jun 2006 02:44:31 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Jun 2006 02:44:29 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 770DE48CC1B; Sun, 25 Jun 2006 22:44:23 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15566-02-6; Sun, 25 Jun 2006 22:44:23 -0400 (EDT) Received: from takamaka.act-europe.fr (s142-179-108-108.bc.hsia.telus.net [142.179.108.108]) by nile.gnat.com (Postfix) with ESMTP id DB2D548CC0E; Sun, 25 Jun 2006 22:44:22 -0400 (EDT) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 276D847E7F; Sun, 25 Jun 2006 19:44:22 -0700 (PDT) Date: Mon, 26 Jun 2006 03:25:00 -0000 From: Joel Brobecker To: gdb@sourceware.org, gdb@sources.redhat.com, Eli Zaretskii Subject: Re: Should "dir" override the full path encoded in debug info? Message-ID: <20060626024422.GJ22750@adacore.com> References: <20060624071058.GD22750@adacore.com> <20060624075143.GF22750@adacore.com> <20060624133051.GB26555@nevyn.them.org> <20060625040715.GH22750@adacore.com> <20060626015318.GI22750@adacore.com> <20060626015636.GA14263@nevyn.them.org> <20060626020333.GA22589@brasko.net> <20060626021945.GA14880@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060626021945.GA14880@nevyn.them.org> User-Agent: Mutt/1.4i 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-06/txt/msg00227.txt.bz2 > > Please correct me if I'm wrong, but wouldn't something like > > substitute-path be more correct. I mean, this doesn't relate to a dir or > > a filename does it? I may not completly understand what the new > > functions input/output is though. > > Works for me. substitute-path works for me too. (and I verified, no collision with other commands). Right now, the interface I have in mind is the following. (gdb) substitute-path from to Sets the substitution rule using "from" and "to". (gdb) substitute-path Delete the substitution rule It just occured to me: Should add a way to show the current substitution pattern? The "show" command prefix doesn't lend itself too well because we have two arguments. Or perhaps is it ok to define our own processing for the "show substitute-path" command: (gdb) show substitute-path Source paths are modified by substituting "from" with "to". Thanks, -- Joel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18761 invoked by alias); 26 Jun 2006 02:44:37 -0000 Received: (qmail 18686 invoked by uid 22791); 26 Jun 2006 02:44:31 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Jun 2006 02:44:29 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 770DE48CC1B; Sun, 25 Jun 2006 22:44:23 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15566-02-6; Sun, 25 Jun 2006 22:44:23 -0400 (EDT) Received: from takamaka.act-europe.fr (s142-179-108-108.bc.hsia.telus.net [142.179.108.108]) by nile.gnat.com (Postfix) with ESMTP id DB2D548CC0E; Sun, 25 Jun 2006 22:44:22 -0400 (EDT) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 276D847E7F; Sun, 25 Jun 2006 19:44:22 -0700 (PDT) Date: Mon, 26 Jun 2006 08:38:00 -0000 From: Joel Brobecker To: gdb@sourceware.org, gdb@sources.redhat.com, Eli Zaretskii Subject: Re: Should "dir" override the full path encoded in debug info? Message-ID: <20060626024422.GJ22750@adacore.com> References: <20060624071058.GD22750@adacore.com> <20060624075143.GF22750@adacore.com> <20060624133051.GB26555@nevyn.them.org> <20060625040715.GH22750@adacore.com> <20060626015318.GI22750@adacore.com> <20060626015636.GA14263@nevyn.them.org> <20060626020333.GA22589@brasko.net> <20060626021945.GA14880@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060626021945.GA14880@nevyn.them.org> User-Agent: Mutt/1.4i 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-06/txt/msg00228.txt.bz2 Message-ID: <20060626083800.MfolJcsk2_ON5Qyq0fob9PVpQy00-_wGAOCpWvbj47E@z> > > Please correct me if I'm wrong, but wouldn't something like > > substitute-path be more correct. I mean, this doesn't relate to a dir or > > a filename does it? I may not completly understand what the new > > functions input/output is though. > > Works for me. substitute-path works for me too. (and I verified, no collision with other commands). Right now, the interface I have in mind is the following. (gdb) substitute-path from to Sets the substitution rule using "from" and "to". (gdb) substitute-path Delete the substitution rule It just occured to me: Should add a way to show the current substitution pattern? The "show" command prefix doesn't lend itself too well because we have two arguments. Or perhaps is it ok to define our own processing for the "show substitute-path" command: (gdb) show substitute-path Source paths are modified by substituting "from" with "to". Thanks, -- Joel