after each call to sim_io_write.
@ -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
@ -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;
}