* source.c: #include gdb_assert.h.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 8 Aug 2006 22:06:06 +0000 (22:06 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 8 Aug 2006 22:06:06 +0000 (22:06 +0000)
commit2f61ca93c255ebbe010e39cdcb8fce2b1ee8e8e2
treefa1f878eed39400f7ebde65cb2f8a5b38a6cc9f4
parentf4b618d1636802c1a830e9887605deb055c6b74d
    * 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.
gdb/ChangeLog
gdb/Makefile.in
gdb/source.c