* interp.c (sim_monitor): Flush stdout and stderr file descriptors
authorThiemo Seufer <ths@networkno.de>
Mon, 19 Feb 2007 17:46:53 +0000 (17:46 +0000)
committerThiemo Seufer <ths@networkno.de>
Mon, 19 Feb 2007 17:46:53 +0000 (17:46 +0000)
after each call to sim_io_write.

sim/mips/ChangeLog
sim/mips/interp.c

index 632ae32880fc548a4527741e17378d9ff1cbeaa0..9ff5dbb0ddbc66026b671559e20878520265f497 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-19  Thiemo Seufer  <ths@mips.com>
+            Nigel Stephens  <nigel@mips.com>
+
+       * interp.c (sim_monitor): Flush stdout and stderr file descriptors
+       after each call to sim_io_write.
+
 2007-02-19  Thiemo Seufer <ths@mips.com>
             Nigel Stephens  <nigel@mips.com>
        
index 13cd26e2c551716b949284dfa655116b1d3145db..51ad1de6fa3bd6b120ff3347769c5acf81c0ae01 100644 (file)
@@ -1264,6 +1264,10 @@ sim_monitor (SIM_DESC sd,
        char *buf = zalloc (nr);
        sim_read (sd, A1, buf, nr);
        V0 = sim_io_write (sd, fd, buf, nr);
+       if (fd == 1)
+           sim_io_flush_stdout (sd);
+       else if (fd == 2)
+           sim_io_flush_stderr (sd);
        zfree (buf);
        break;
       }
This page took 0.026953 seconds and 4 git commands to generate.