OSDN Git Service

* 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)
commit3f00ce2cca0995d8927c479dec1d8d613229a9f3
tree67943bd08aad066daad018c0a6dcbd41d3c8bf2d
parent919fdc796f4b2ac5d1fadff6c0904a662a1a36dc
    * 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