summaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-10-25 19:24:01 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-10-25 19:24:01 +0000
commit07bd895a0fe0e4764cca39f2a28197fcfc82b9ca (patch)
treed816dd8f0379a3540833f527116a94432bbdb3c5 /gdb/tui
parent623b4e0f1deee3b25fcb39e4c8cafdf03dd0152c (diff)
downloadgdb-07bd895a0fe0e4764cca39f2a28197fcfc82b9ca.tar.gz
Fix PR gdb/478
* tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/ChangeLog5
-rw-r--r--gdb/tui/tuiIO.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 8fdc4bcdfc3..3bcfa176f66 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-25 Stephane Carrez <stcarrez@nerim.fr>
+
+ Fix PR gdb/478
+ * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
+
2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* tui-hooks.c (selected_frame_level_changed_hook): Use the one
diff --git a/gdb/tui/tuiIO.c b/gdb/tui/tuiIO.c
index f70df8f4748..3968a0a270e 100644
--- a/gdb/tui/tuiIO.c
+++ b/gdb/tui/tuiIO.c
@@ -600,7 +600,7 @@ tui_initialize_io ()
fprintf_unfiltered (gdb_stderr, "Cannot redirect readline output");
exit (1);
}
- setlinebuf (tui_rl_outstream);
+ setvbuf (tui_rl_outstream, (char*) NULL, _IOLBF, 0);
#ifdef O_NONBLOCK
(void) fcntl (tui_readline_pipe[0], F_SETFL, O_NONBLOCK);