aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-07-27 19:11:51 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-07-27 19:11:51 +0000
commitc63a1f8688b64b454605a10755e7a4c4c780dbfe (patch)
treeeff957c5be97e1cff110f2fd3bebbce0c6c45127 /gdb/top.c
parent872e696d08b5fd0002af3cf1d131cbf024802e95 (diff)
downloadgdb-c63a1f8688b64b454605a10755e7a4c4c780dbfe.zip
gdb-c63a1f8688b64b454605a10755e7a4c4c780dbfe.tar.gz
gdb-c63a1f8688b64b454605a10755e7a4c4c780dbfe.tar.bz2
gdb/
* top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. (fputs_maybe_filtered): Do not do filtering also on ! INPUT_FROM_TERMINAL_P.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 93447fe..81a2b35 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1242,6 +1242,9 @@ input_from_terminal_p (void)
if (interactive_mode != AUTO_BOOLEAN_AUTO)
return interactive_mode == AUTO_BOOLEAN_TRUE;
+ if (batch_flag)
+ return 0;
+
if (gdb_has_a_terminal () && instream == stdin)
return 1;