From 7c953934352840c28dcda0c8a6a18660aa1e3ab9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Mar 2010 19:20:38 +0000 Subject: 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. --- gdb/doc/ChangeLog | 8 ++++++++ gdb/doc/gdb.texinfo | 12 +++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'gdb/doc') 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 + + 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 * 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). -- cgit v1.1