summaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-06-20 20:12:58 +0000
committerDoug Evans <dje@google.com>2013-06-20 20:12:58 +0000
commitf114db4d2eba0fba283c82ec1bd9d882bc49ce9b (patch)
treee02e3dc140cf58ad4e4878ca8bbcaad6b6b24980 /gdb/source.c
parent27ef916ae7ad89e01eb4ef7b24fd7be452b96e72 (diff)
downloadgdb-f114db4d2eba0fba283c82ec1bd9d882bc49ce9b.tar.gz
* source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
better.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 71b6d53b502..1748d6672df 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -677,9 +677,10 @@ is_regular_file (const char *name)
If OPF_TRY_CWD_FIRST, try to open ./STRING before searching PATH.
(ie pretend the first element of PATH is "."). This also indicates
- that a slash in STRING disables searching of the path (this is
- so that "exec-file ./foo" or "symbol-file ./foo" insures that you
- get that particular version of foo or an error message).
+ that, unless OPF_SEARCH_IN_PATH is also specified, a slash in STRING
+ disables searching of the path (this is so that "exec-file ./foo" or
+ "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
searched in path (we usually want this for source files but not for