diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-18 06:28:47 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-18 06:28:47 +0000 |
commit | 8150ff9c32f8cdd49dc8abe4ec15c48185c0924b (patch) | |
tree | 2f46efc8335f8b525c96fa38cab69fb7d3714336 /gdb/doc/gdb.texinfo | |
parent | 973817a31359035221fb443a623830cdaab31de5 (diff) | |
download | gdb-8150ff9c32f8cdd49dc8abe4ec15c48185c0924b.zip gdb-8150ff9c32f8cdd49dc8abe4ec15c48185c0924b.tar.gz gdb-8150ff9c32f8cdd49dc8abe4ec15c48185c0924b.tar.bz2 |
* gdb.texinfo (File Options): Document -x on .py files.
(Command Files): Document handling of Python scripts.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 7cf1bb4..d37712b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -963,8 +963,11 @@ Connect to process ID @var{number}, as with the @code{attach} command. @itemx -x @var{file} @cindex @code{--command} @cindex @code{-x} -Execute @value{GDBN} commands from file @var{file}. @xref{Command -Files,, Command files}. +Execute commands from file @var{file}. If @var{file} ends in +@samp{.py}, then the file is evaluated as Python code. If Python +support is not enabled in this @value{GDBN}, then the file is assumed to +contain @value{GDBN} commands, regardless of its extension. +@xref{Command Files,, Command files}. @item -eval-command @var{command} @itemx -ex @var{command} @@ -19159,6 +19162,11 @@ If @code{-v}, for verbose mode, is given then @value{GDBN} displays each command as it is executed. The option must be given before @var{filename}, and is interpreted as part of the filename anywhere else. +If @var{filename} ends in @samp{.py}, then @value{GDBN} evaluates the +contents of the file as Python code. If Python support is not compiled +in to @value{GDBN}, then the file is assumed to contain @value{GDBN} +commands, regardless of its extension. + 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 |