aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-04-08 21:08:40 +0000
committerDoug Evans <dje@google.com>2010-04-08 21:08:40 +0000
commit080017175b5248f1e5b0d48a55a06634244db459 (patch)
tree8d15bc0ee57732cc1e00075e1acd5550dc7d992a /gdb/doc
parent938d2b7434405c3e8cf1ceeb9496ff0bac01e84c (diff)
downloadgdb-080017175b5248f1e5b0d48a55a06634244db459.zip
gdb-080017175b5248f1e5b0d48a55a06634244db459.tar.gz
gdb-080017175b5248f1e5b0d48a55a06634244db459.tar.bz2
* source.c (openp): Skip $cdir in PATH.
doc/ * gdb.texinfo (Command Files): Document that gdb skips $cdir in search path, and document that gdb only scans the search path if the script's path doesn't specify a directory.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog6
-rw-r--r--gdb/doc/gdb.texinfo8
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index a85e56a..16264af 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-08 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Command Files): Document that gdb skips $cdir in
+ search path, and document that gdb only scans the search path if
+ the script's path doesn't specify a directory.
+
2010-04-05 Doug Evans <dje@google.com>
* gdb.texinfo (maint show python auto-load): Fix typo.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index fd8b0bc..039287d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -19383,8 +19383,12 @@ unless the order of execution is changed by one of the
printed as they are executed. An error in any command terminates
execution of the command file and control is returned to the console.
-@value{GDBN} searches for @var{filename} in the current directory and then
-on the search path (specified with the @samp{directory} command).
+@value{GDBN} first searches for @var{filename} in the current directory.
+If the file is not found there, and @var{filename} does not specify a
+directory, then @value{GDBN} also looks for the file on the source search path
+(specified with the @samp{directory} command);
+except that @file{$cdir} is not searched because the compilation directory
+is not relevant to scripts.
If @code{-v}, for verbose mode, is given then @value{GDBN} displays
each command as it is executed. The option must be given before