From 080017175b5248f1e5b0d48a55a06634244db459 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 8 Apr 2010 21:08:40 +0000 Subject: * 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. --- gdb/doc/gdb.texinfo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb/doc/gdb.texinfo') 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 -- cgit v1.1