* source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH

better.
This commit is contained in:
Doug Evans
2013-06-20 20:12:58 +00:00
parent c62781705e
commit e3e06db30c
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-06-20 Doug Evans <dje@google.com>
* source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
better.
2013-06-20 Yao Qi <yao@codesourcery.com> 2013-06-20 Yao Qi <yao@codesourcery.com>
* breakpoint.c (create_breakpoint): Fix code indentation. * breakpoint.c (create_breakpoint): Fix code indentation.

View File

@ -677,9 +677,10 @@ is_regular_file (const char *name)
If OPF_TRY_CWD_FIRST, try to open ./STRING before searching PATH. If OPF_TRY_CWD_FIRST, try to open ./STRING before searching PATH.
(ie pretend the first element of PATH is "."). This also indicates (ie pretend the first element of PATH is "."). This also indicates
that a slash in STRING disables searching of the path (this is that, unless OPF_SEARCH_IN_PATH is also specified, a slash in STRING
so that "exec-file ./foo" or "symbol-file ./foo" insures that you disables searching of the path (this is so that "exec-file ./foo" or
get that particular version of foo or an error message). "symbol-file ./foo" insures that you get that particular version of
foo or an error message).
If OPTS has OPF_SEARCH_IN_PATH set, absolute names will also be If OPTS has OPF_SEARCH_IN_PATH set, absolute names will also be
searched in path (we usually want this for source files but not for searched in path (we usually want this for source files but not for