diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2006-01-23 16:28:37 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2006-01-23 16:28:37 +0000 |
commit | 4b505b12693cdcd0b4e88aa8beedca359b8827a7 (patch) | |
tree | 51f064b2f090b6ed51a97cd18c02e785b5387ca5 /gdb/doc | |
parent | 721d14ba74f11a737711195f28de345a34073de2 (diff) | |
download | gdb-4b505b12693cdcd0b4e88aa8beedca359b8827a7.zip gdb-4b505b12693cdcd0b4e88aa8beedca359b8827a7.tar.gz gdb-4b505b12693cdcd0b4e88aa8beedca359b8827a7.tar.bz2 |
2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-cmds.c: Include fcntl.h.
(source_command): Use the GDB search path to find script files.
doc/
* gdb.texinfo (Choosing files): Mention that -directory is used
for script files.
(Specifying source directories): Likewise.
(Command files): Explain how script files are found.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 8 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index d9aac34..c040046 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2006-01-23 Andrew Stubbs <andrew.stubbs@st.com> + + * gdb.texinfo (Choosing files): Mention that -directory is used + for script files. + (Specifying source directories): Likewise. + (Command files): Explain how script files are found. + 2006-01-21 Eli Zaretskii <eliz@gnu.org> * gdb.texinfo (Backtrace): Describe how to get backtrace of all diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index c17520a..fd1a7ed 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -950,7 +950,7 @@ also be interleaved with @samp{-command} as required. @itemx -d @var{directory} @cindex @code{--directory} @cindex @code{-d} -Add @var{directory} to the path to search for source files. +Add @var{directory} to the path to search for source and script files. @item -r @itemx -readnow @@ -5018,6 +5018,9 @@ When you start @value{GDBN}, its source path includes only @samp{cdir} and @samp{cwd}, in that order. To add other directories, use the @code{directory} command. +The search path is used to find both program source files and @value{GDBN} +script files (read using the @samp{-command} option and @samp{source} command). + @table @code @item directory @var{dirname} @dots{} @item dir @var{dirname} @dots{} @@ -16210,6 +16213,9 @@ 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). + Commands that would ask for confirmation if used interactively proceed without asking when used in a command file. Many @value{GDBN} commands that normally print messages to say what they are doing omit the messages |