This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH better.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 20 Jun 2013 13:14:24 -0700
- Subject: [commit] Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH better.
Hi.
The interaction of OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH isn't as well
documented as it could be, so I spiff'd it up a little.
Committed.
2013-06-20 Doug Evans <dje@google.com>
* source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
better.
Index: source.c
===================================================================
RCS file: /cvs/src/src/gdb/source.c,v
retrieving revision 1.161
diff -u -p -r1.161 source.c
--- source.c 30 May 2013 17:33:41 -0000 1.161
+++ source.c 20 Jun 2013 20:08:28 -0000
@@ -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