diff options
author | Thiemo Seufer <ths@networkno.de> | 2007-02-19 17:46:53 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2007-02-19 17:46:53 +0000 |
commit | f8df4c7704d349e0622d471b2e0d2bfb86cd5b2f (patch) | |
tree | af4d5cc686e52c5dd7243dd47bdbfd93f03d43e8 /sim/mips/interp.c | |
parent | 929e4d1a15b37f533a324b5786ea82177dc1d1d7 (diff) | |
download | gdb-f8df4c7704d349e0622d471b2e0d2bfb86cd5b2f.zip gdb-f8df4c7704d349e0622d471b2e0d2bfb86cd5b2f.tar.gz gdb-f8df4c7704d349e0622d471b2e0d2bfb86cd5b2f.tar.bz2 |
* interp.c (sim_monitor): Flush stdout and stderr file descriptors
after each call to sim_io_write.
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r-- | sim/mips/interp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c index 13cd26e..51ad1de 100644 --- a/sim/mips/interp.c +++ b/sim/mips/interp.c @@ -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; } |