aboutsummaryrefslogtreecommitdiff
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
commite3e06db30cd44fa751ba3cf7bbdfbbc96cac943d (patch)
treecca5174acb501df3b1f1433bd2e0e8e648f5fe80
parentc62781705e9d1caf76f8617664e0e8419bea552c (diff)
downloadgdb-e3e06db30cd44fa751ba3cf7bbdfbbc96cac943d.zip
gdb-e3e06db30cd44fa751ba3cf7bbdfbbc96cac943d.tar.gz
gdb-e3e06db30cd44fa751ba3cf7bbdfbbc96cac943d.tar.bz2
* source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
better.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/source.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0810369..29ab625 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
* breakpoint.c (create_breakpoint): Fix code indentation.
diff --git a/gdb/source.c b/gdb/source.c
index 71b6d53..1748d66 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