This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [rfa/tui] Fix bitrot in tui/tui-file.c


Approved.

Andrew Cagney wrote:
> 
> Hello,
> 
> When the TUI code was moved (by me :-/) out of gdb/utils.c into
> gdb/tui/tui-file.c it was never compiled.  The attatched fixes that.
> 
> Ok?
>         Andrew
> 
>   --------------------------------------------------------------------------------
> 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.
> 
> Index: tui/tui-file.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/tui/tui-file.c,v
> retrieving revision 1.1.1.2
> diff -p -r1.1.1.2 tui-file.c
> *** tui-file.c  2000/02/02 00:21:19     1.1.1.2
> --- tui-file.c  2000/05/25 06:16:13
> ***************
> *** 22,27 ****
> --- 22,34 ----
>   #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.  */
> *************** tui_file_fputs (linebuffer, file)
> *** 196,202 ****
> 
>           if (stream->ts_streamtype == astring)
>             {
> !             tui_file_adjust_strbuf (strlen (linebuffer), stream);
>               strcat (stream->ts_strbuf, linebuffer);
>             }
>           else
> --- 203,209 ----
> 
>           if (stream->ts_streamtype == astring)
>             {
> !             tui_file_adjust_strbuf (strlen (linebuffer), file);
>               strcat (stream->ts_strbuf, linebuffer);
>             }
>           else
> *************** tui_file_fputs (linebuffer, file)
> *** 215,221 ****
>           /* The normal case - just do a fputs() */
>           if (stream->ts_streamtype == astring)
>             {
> !             tui_file_adjust_strbuf (strlen (linebuffer), stream);
>               strcat (stream->ts_strbuf, linebuffer);
>             }
>           else
> --- 222,228 ----
>           /* The normal case - just do a fputs() */
>           if (stream->ts_streamtype == astring)
>             {
> !             tui_file_adjust_strbuf (strlen (linebuffer), file);
>               strcat (stream->ts_strbuf, linebuffer);
>             }
>           else

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]