This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] New substitute-path commands


Hello,

Here is a second take at this new functionality, updated as suggested:

> set substitute-path FROM TO
> 
>   [We can make it use buildargv for uniform quoting of TO and FROM. 
>   I'd recommend that.]
> 
> unset substitute-path FROM
> 
> show substitute-path

Added bonus, I included a documentation patch for review.

2006-07-06  Joel Brobecker  <brobecker@adacore.com

        * source.c (substitute_path_from): New static variable.
        (substitute_path_to): Likewise.
        (xrewrite_source_path): New function.
        (find_and_open_source): Add source path rewriting support.
        (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.

Documentation ChangeLog entry:

        * gdb.texinfo (Source Path): Add documentation for new
        substitute-path commands.

Tested on x86-linux, no regression.

Thanks,
-- 
Joel

Attachment: subst.diff
Description: Text document

Attachment: subst-doc.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]