Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [rfa/tui] Fix bitrot in tui/tui-file.c
       [not found] <392CCA5D.A44B5AB6@cygnus.com>
  2000-05-25  9:25 ` [rfa/tui] Fix bitrot in tui/tui-file.c Syd Polk
@ 2000-05-25  9:54 ` Jimmy Guo
  2000-05-25  9:56   ` Syd Polk
  1 sibling, 1 reply; 3+ messages in thread
From: Jimmy Guo @ 2000-05-25  9:54 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: GDB Patches

Approved.

- Jimmy

On Thu, 25 May 2000, 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [rfa/tui] Fix bitrot in tui/tui-file.c
  2000-05-25  9:54 ` Jimmy Guo
@ 2000-05-25  9:56   ` Syd Polk
  0 siblings, 0 replies; 3+ messages in thread
From: Syd Polk @ 2000-05-25  9:56 UTC (permalink / raw)
  To: Jimmy Guo; +Cc: Andrew Cagney, GDB Patches

Sorry about my pre-emptive approval. I was mistaken as to who oversaw the tui
directory.



Jimmy Guo wrote:
> 
> Approved.
> 
> - Jimmy
> 
> On Thu, 25 May 2000, 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
From guo@cup.hp.com Thu May 25 09:57:00 2000
From: Jimmy Guo <guo@cup.hp.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: GDB Patches <gdb-patches@sourceware.cygnus.com>
Subject: Approved Re: [rfa/tui] Include <ncurses.h> when available.
Date: Thu, 25 May 2000 09:57:00 -0000
Message-id: <Pine.LNX.4.10.10005250955510.7033-100000@hpcll168.cup.hp.com>
References: <392D092C.9A73A086@cygnus.com>
X-SW-Source: 2000-05/msg00394.html
Content-length: 690

Approved.  I will spend more time on cleaning up TUI support in the
coming weeks.  Thanks for the initiative!

- Jimmy

On Thu, 25 May 2000, Andrew Cagney wrote:

>Hello,
>
>The attatched twiddles gdb/tui so that it will include <ncurses.h> when
>available.  I've found <ncurses.h> to be more complete than <curses.h>
>on some systems.  The patch also eliminates a few stray <curses.h>
>includes.
>
>For those that are wondering, yes, this patch has the potential to clash
>with utils.c:#include<curses.h> ("tui.h" can be included by defs.h). 
>Since the TUI is still HP only that doesn't occure in the field.  Longer
>term I hope to see defs.h:#include<tui.h> replaced.
>
>	ok?
>		Andrew


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [rfa/tui] Fix bitrot in tui/tui-file.c
       [not found] <392CCA5D.A44B5AB6@cygnus.com>
@ 2000-05-25  9:25 ` Syd Polk
  2000-05-25  9:54 ` Jimmy Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Syd Polk @ 2000-05-25  9:25 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: GDB Patches

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
From broeker@physik.rwth-aachen.de Thu May 25 09:52:00 2000
From: Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
To: gdb-patches@sourceware.cygnus.com
Subject: gdb5.0 on i586-pc-linux-gnulibc1: no <poll.h>, but <sys/poll.h>
Date: Thu, 25 May 2000 09:52:00 -0000
Message-id: <Pine.LNX.4.10.10005251840290.23601-100000@acp3bf>
X-SW-Source: 2000-05/msg00391.html
Content-length: 642

Hello, everyone.

System: i586-cp-linux-gnulibc1 (libc5 5.4.33, linux 2.0.32)
gdb version: gdb-5.0 (final release)

I just found a minor glitch in building gdb5.0: it did (correctly)
determine that this machine I build on does have the poll() function. But
there's no check as to where the appropriate header file might be: it's
hardwired to #include <poll.h> whenever HAVE_POLL is set. On the
admittedly outdated system Linux mentioned, it should #include
<sys/poll.h>. Changing that the brute-force way gave me a working 
gdb...



Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-05-25  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <392CCA5D.A44B5AB6@cygnus.com>
2000-05-25  9:25 ` [rfa/tui] Fix bitrot in tui/tui-file.c Syd Polk
2000-05-25  9:54 ` Jimmy Guo
2000-05-25  9:56   ` Syd Polk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox