diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-27 19:11:51 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-27 19:11:51 +0000 |
commit | c63a1f8688b64b454605a10755e7a4c4c780dbfe (patch) | |
tree | eff957c5be97e1cff110f2fd3bebbce0c6c45127 /gdb/top.c | |
parent | 872e696d08b5fd0002af3cf1d131cbf024802e95 (diff) | |
download | gdb-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |