* 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.
This commit is contained in:
Jan Kratochvil
2010-07-27 19:11:51 +00:00
parent 872e696d08
commit c63a1f8688
3 changed files with 13 additions and 2 deletions

View File

@@ -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;