diff options
author | Tom Tromey <tromey@redhat.com> | 2010-03-08 19:20:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-03-08 19:20:38 +0000 |
commit | 7c953934352840c28dcda0c8a6a18660aa1e3ab9 (patch) | |
tree | aad0480e2191952a96d4464e37055ff6bc82b7a9 /gdb/doc | |
parent | 9c8ee2ab75111236586c439951528d90e2242568 (diff) | |
download | fsf-binutils-gdb-7c953934352840c28dcda0c8a6a18660aa1e3ab9.zip fsf-binutils-gdb-7c953934352840c28dcda0c8a6a18660aa1e3ab9.tar.gz fsf-binutils-gdb-7c953934352840c28dcda0c8a6a18660aa1e3ab9.tar.bz2 |
gdb
PR cli/9591:
* NEWS: Update.
* utils.c: Include main.h.
(fputs_maybe_filtered): Don't paginate if `batch_flag'.
(defaulted_query): Use default answer if `batch_flag'.
* main.h (batch_flag): Declare.
* main.c (batch_flag): New global.
(captured_main): Remove 'batch'. Update.
gdb/doc
PR cli/9591:
* gdb.texinfo (Mode Options): Mention lack of pagination and
confirmation with --batch.
(Screen Size): Mention --batch.
(Messages/Warnings): Likewise.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 12 |
2 files changed, 17 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index bbd7895..285ec9d 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,11 @@ +2010-03-08 Tom Tromey <tromey@redhat.com> + + PR cli/9591: + * gdb.texinfo (Mode Options): Mention lack of pagination and + confirmation with --batch. + (Screen Size): Mention --batch. + (Messages/Warnings): Likewise. + 2010-03-05 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Basic Python): Document target_charset and diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 41b11b6..a1f3a78 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1028,7 +1028,9 @@ Run in batch mode. Exit with status @code{0} after processing all the command files specified with @samp{-x} (and all commands from initialization files, if not inhibited with @samp{-n}). Exit with nonzero status if an error occurs in executing the @value{GDBN} commands -in the command files. +in the command files. Batch mode also disables pagination; +@pxref{Screen Size} and acts as if @kbd{set confirm off} were in +effect (@pxref{Messages/Warnings}). Batch mode may be useful for running @value{GDBN} as a filter, for example to download and run a program on another computer; in order to @@ -18494,7 +18496,9 @@ from wrapping its output. @itemx set pagination off @kindex set pagination Turn the output pagination on or off; the default is on. Turning -pagination off is the alternative to @code{set height 0}. +pagination off is the alternative to @code{set height 0}. Note that +running @value{GDBN} with the @option{--batch} option (@pxref{Mode +Options, -batch}) also automatically disables pagination. @item show pagination @kindex show pagination @@ -18717,7 +18721,9 @@ commands, you can disable this ``feature'': @cindex confirmation @cindex stupid questions @item set confirm off -Disables confirmation requests. +Disables confirmation requests. Note that running @value{GDBN} with +the @option{--batch} option (@pxref{Mode Options, -batch}) also +automatically disables confirmation requests. @item set confirm on Enables confirmation requests (the default). |