diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2005-11-07 13:56:48 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2005-11-07 13:56:48 +0000 |
commit | 8a5a3c829873c2ec9f0504afbb0b2704da39498a (patch) | |
tree | b829d9bee9fadd32800898c6ec18909a72d692cd /gdb/doc/gdb.texinfo | |
parent | 3b493122437aaa89993fa88518c6980c9e858f38 (diff) | |
download | gdb-8a5a3c829873c2ec9f0504afbb0b2704da39498a.zip gdb-8a5a3c829873c2ec9f0504afbb0b2704da39498a.tar.gz gdb-8a5a3c829873c2ec9f0504afbb0b2704da39498a.tar.bz2 |
2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* main.c (captured_main): Define struct cmdarg. Change type of cmdarg.
Add new options --eval-command and alias -ex.
Adjust --command to use the new struct cmdarg.
Execute commands given with --eval-command.
(print_gdb_help): Add new options --eval-command, -ex and mention -x.
docs/
* gdb.texinfo (Choosing files): Add --eval-command.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5402d6a..a837d16 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -932,6 +932,20 @@ file named @var{number}. Execute @value{GDBN} commands from file @var{file}. @xref{Command Files,, Command files}. +@item -eval-command @var{command} +@itemx -ex @var{command} +@cindex @code{--eval-command} +@cindex @code{-ex} +Execute a single @value{GDBN} command. + +This option may be used multiple times to call multiple commands. It may +also be interleaved with @samp{-command} as required. + +@smallexample +@value{GDBP} -ex 'target sim' -ex 'load' \ + -x setbreakpoints -ex 'run' a.out +@end smallexample + @item -directory @var{directory} @itemx -d @var{directory} @cindex @code{--directory} |