From: Jan Kratochvil Date: Thu, 8 Sep 2011 15:27:46 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2e7f004c75322ea75cc9326bc6c6f4b6577df7f;p=binutils-gdb.git gdb/ Fix TUI screen corruption. * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by batch_flag. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9f4697af299..6861283ea2f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-09-08 Jan Kratochvil + + Fix TUI screen corruption. + * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by + batch_flag. + 2011-09-08 Jan Kratochvil * findvar.c (read_var_value): Never return NULL, throw an error diff --git a/gdb/utils.c b/gdb/utils.c index 4654870afbc..a979cc4e4e1 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2131,8 +2131,8 @@ fputs_maybe_filtered (const char *linebuffer, struct ui_file *stream, /* Don't do any filtering if it is disabled. */ if (stream != gdb_stdout - || ! pagination_enabled - || ! input_from_terminal_p () + || !pagination_enabled + || batch_flag || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX) || top_level_interpreter () == NULL || ui_out_is_mi_like_p (interp_ui_out (top_level_interpreter ())))