Fix PR tui/21216: TUI line breaks regression
[deliverable/binutils-gdb.git] / gdb / tui / tui-file.c
index 2f895b7a5348cae2d04f8e79231c3aefb1c16689..80a31f8bbe535e4aed9294e0a9d9b0441f812682 100644 (file)
@@ -43,6 +43,16 @@ tui_file::puts (const char *linebuffer)
     tui_refresh_cmd_win ();
 }
 
+void
+tui_file::write (const char *buf, long length_buf)
+{
+  tui_write (buf, length_buf);
+  /* gdb_stdout is buffered, and the caller must gdb_flush it at
+     appropriate times.  Other streams are not so buffered.  */
+  if (this != gdb_stdout)
+    tui_refresh_cmd_win ();
+}
+
 void
 tui_file::flush ()
 {
This page took 0.024274 seconds and 4 git commands to generate.