summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-26 06:15:49 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-26 06:15:49 +0000
commit83fb17e1e39bf18576c1051c6f5e5c770ec3780a (patch)
tree76775f025d4be7703f9d5a95eca0a2ae7d524ed6
parent49d324e401255ac441209362302bdd45e586c3c0 (diff)
downloadgdb-83fb17e1e39bf18576c1051c6f5e5c770ec3780a.tar.gz
Fix bitrot in tui-file.c.
-rw-r--r--gdb/tui/ChangeLog7
-rw-r--r--gdb/tui/tui-file.c11
2 files changed, 16 insertions, 2 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index d7e8629c07b..d492a9d4966 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,3 +1,10 @@
+Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
+ "tuiCommand.h".
+ (tui_file_fputs): Pass ``file'' and not ``stream'' to
+ tui_file_adjust_strbuf.
+
Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
* tui.h: Include <ncurses.h> when available.
diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c
index 7822108de8a..9bb28441ed6 100644
--- a/gdb/tui/tui-file.c
+++ b/gdb/tui/tui-file.c
@@ -22,6 +22,13 @@
#include "ui-file.h"
#include "tui/tui-file.h"
+#ifdef TUI
+#include "tui.h"
+#include "tuiData.h"
+#include "tuiIO.h"
+#include "tuiCommand.h"
+#endif
+
#include <string.h>
/* Called instead of fputs for all TUI_FILE output. */
@@ -196,7 +203,7 @@ tui_file_fputs (linebuffer, file)
if (stream->ts_streamtype == astring)
{
- tui_file_adjust_strbuf (strlen (linebuffer), stream);
+ tui_file_adjust_strbuf (strlen (linebuffer), file);
strcat (stream->ts_strbuf, linebuffer);
}
else
@@ -215,7 +222,7 @@ tui_file_fputs (linebuffer, file)
/* The normal case - just do a fputs() */
if (stream->ts_streamtype == astring)
{
- tui_file_adjust_strbuf (strlen (linebuffer), stream);
+ tui_file_adjust_strbuf (strlen (linebuffer), file);
strcat (stream->ts_strbuf, linebuffer);
}
else