Introduce and use flush_streams
[deliverable/binutils-gdb.git] / gdb / event-loop.c
index a5d2f6fa1cc4cc00df49dd1cd0523d9585854727..4ce8899612c425c222dc128df8cab67c6b1eed90 100644 (file)
@@ -663,8 +663,7 @@ gdb_wait_for_event (int block)
   int num_found = 0;
 
   /* Make sure all output is done before getting another event.  */
-  gdb_stdout->flush ();
-  gdb_stderr->flush ();
+  flush_streams ();
 
   if (gdb_notifier.num_fds == 0)
     return -1;
This page took 0.049297 seconds and 4 git commands to generate.