gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 8 Sep 2011 15:27:46 +0000 (15:27 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 8 Sep 2011 15:27:46 +0000 (15:27 +0000)
Fix TUI screen corruption.
* utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
batch_flag.

gdb/ChangeLog
gdb/utils.c

index 9f4697af299f54dc6684ab41cf2687c5fbf7ec8f..6861283ea2f673894817a13d0c92748848514d8c 100644 (file)
@@ -1,3 +1,9 @@
+2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix TUI screen corruption.
+       * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
+       batch_flag.
+
 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * findvar.c (read_var_value): Never return NULL, throw an error
index 4654870afbc644e6566fdee0ad4d6acb7c2911b4..a979cc4e4e1d0ae6817ec2967a622f1ee0426a8c 100644 (file)
@@ -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 ())))