diff options
author | Michael Meissner <gnu@the-meissners.org> | 1997-11-26 21:52:16 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1997-11-26 21:52:16 +0000 |
commit | ac0704137816bd777c0cd422a9a77a590e2c0732 (patch) | |
tree | 153aea333d90e37e19c5a529a1debc7d4ecace4b /sim/common/syscall.c | |
parent | be88ccfcd41c10bfb3e0ad7ec35ba8b25a268168 (diff) | |
download | gdb-ac0704137816bd777c0cd422a9a77a590e2c0732.zip gdb-ac0704137816bd777c0cd422a9a77a590e2c0732.tar.gz gdb-ac0704137816bd777c0cd422a9a77a590e2c0732.tar.bz2 |
Flush writes to stdout, stderr
Diffstat (limited to 'sim/common/syscall.c')
-rw-r--r-- | sim/common/syscall.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sim/common/syscall.c b/sim/common/syscall.c index a1031d9..b73cd99 100644 --- a/sim/common/syscall.c +++ b/sim/common/syscall.c @@ -318,9 +318,15 @@ cb_syscall (cb, sc) goto FinishSyscall; } if (fd == 1) - result = (int) (*cb->write_stdout) (cb, buf, bytes_read); + { + result = (int) (*cb->write_stdout) (cb, buf, bytes_read); + (*cb->flush_stdout) (cb); + } if (fd == 2) - result = (int) (*cb->write_stderr) (cb, buf, bytes_read); + { + result = (int) (*cb->write_stderr) (cb, buf, bytes_read); + (*cb->flush_stderr) (cb); + } else result = (int) (*cb->write) (cb, fd, buf, bytes_read); if (result == -1) |