From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19576 invoked by alias); 8 Aug 2006 22:19:06 -0000 Received: (qmail 19508 invoked by uid 22791); 8 Aug 2006 22:19:05 -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; Tue, 08 Aug 2006 22:19:02 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 8816848CCB9 for ; Tue, 8 Aug 2006 18:19:00 -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 13043-01-3 for ; Tue, 8 Aug 2006 18:19:00 -0400 (EDT) Received: from takamaka.act-europe.fr (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 33E7948CC5E for ; Tue, 8 Aug 2006 18:19:00 -0400 (EDT) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 7E44547EFA; Tue, 8 Aug 2006 15:18:59 -0700 (PDT) Date: Tue, 08 Aug 2006 22:19:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Re: [RFA] set/unset/show substitute-path commands (take 2) Message-ID: <20060808221859.GD1146@adacore.com> References: <20060715054902.GD1393@adacore.com> <20060719181516.GO15273@adacore.com> <20060724202545.GD15759@nevyn.them.org> <20060725162829.GC12362@adacore.com> <20060725163822.GA15082@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060725163822.GA15082@nevyn.them.org> User-Agent: Mutt/1.4i 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-08/txt/msg00064.txt.bz2 > On Tue, Jul 25, 2006 at 09:28:29AM -0700, Joel Brobecker wrote: > > * source.c: #include gdb_assert.h. > > (substitute_path_rule): New struct. > > (substitute_path_rules): New static global variable. > > (substitute_path_rule_matches): New function. > > (get_substitute_path_rule): New function. > > (rewrite_source_path): New function. > > (find_and_open_source): Add source path rewriting support. > > (strip_trailing_directory_separator): New function. > > (find_substitute_path_rule): New function. > > (add_substitute_path_rule): New function. > > (delete_substitute_path_rule): New function. > > (show_substitute_path_command): New function. > > (unset_substitute_path_command): New function. > > (set_substitute_path_command): New function. > > (_initialize_source): Add new substitute-path commands. > > * Makefile.in (source.o): Add dependency on gdb_assert.h. > > > > Does it look better? Tested on x86-linux. > > OK. Let's go with this version. It needs documentation, testcase, and > probably NEWS; those can be next :-) > > Thanks! Feel free to commit. Now checked in - same for the doco part. NEWS entry next... -- Joel