forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
#include "gdb_obstack.h"
|
||||
#include "gdbcore.h"
|
||||
#include "top.h"
|
||||
#include "main.h"
|
||||
|
||||
#include "inferior.h" /* for signed_pointer_to_address */
|
||||
|
||||
@@ -1496,7 +1497,7 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args)
|
||||
question we're asking, and then answer the default automatically. This
|
||||
way, important error messages don't get lost when talking to GDB
|
||||
over a pipe. */
|
||||
if (! input_from_terminal_p ())
|
||||
if (batch_flag || ! input_from_terminal_p ())
|
||||
{
|
||||
wrap_here ("");
|
||||
vfprintf_filtered (gdb_stdout, ctlstr, args);
|
||||
|
||||
Reference in New Issue
Block a user