This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] New ui_file streams for Insight
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [RFA] New ui_file streams for Insight
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Sun, 1 Apr 2001 18:36:44 -0400 (EDT)
- Cc: "Martin M. Hunt" <hunt at redhat dot com>, gdb at sources dot redhat dot com, insight at sources dot redhat dot com
- References: <Pine.SUN.4.33.0103310011540.11938-100000@rtl.cygnus.com><3AC78B21.8F35C566@cygnus.com>
Andrew Cagney writes:
> "Martin M. Hunt" wrote:
> >
> > Here are my first set of changes to add support for multiple streams to
> > Insight. Instead of using the tui code and copying gdb_stdlog and
> > gdb_stdtarg to gdb_stdout, it creates unique ui_files for each. Currently
> > Insight will simple write stderr, stdlog, and stdtarg to the console
> > window (if it is open). stderr messages appear in red, stdlog in green,
> > and stdtarg in blue.
>
> Yes! Thanks.
>
> > In main.c, I moved the creation of the gdbtk ui_files until after the
> > arguments are parsed. I don't see that this would cause problems,
> > although I don't see why any of the ui_files are created before the
> > command line is processed.
>
> I suspect it isn't yet wired up quite right. Can this be done by
> hooking init_ui_hook and/or pre_init_ui_hook and thus eliminate the need
> for the #ifdefs and externs (1).
>
Oops, I missed that. Yes. Thanks
Elena
> Andrew
>
> (1) Don't forget that GDB is trying to reduce the total number of .c
> extern's and #ifdefs :-)
>