This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] set/unset/show substitute-path commands (take 2)
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 8 Aug 2006 15:18:59 -0700
- Subject: Re: [RFA] set/unset/show substitute-path commands (take 2)
- References: <20060715054902.GD1393@adacore.com> <20060719181516.GO15273@adacore.com> <20060724202545.GD15759@nevyn.them.org> <20060725162829.GC12362@adacore.com> <20060725163822.GA15082@nevyn.them.org>
> 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