This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] cli-out.c new function
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: fnasser at redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Tue, 5 Nov 2002 22:26:36 -0500
- Subject: Re: [RFA] cli-out.c new function
- References: <15816.21181.748534.54828@localhost.redhat.com>
On Tue, Nov 05, 2002 at 06:22:37PM -0500, Elena Zannoni wrote:
>
> This function sets the stream of the uiout file to the given
> parameter. It is used in the interpreter work. Maybe Keith or JimI
> can explain this a bit better, but switching interpreters can change
> the gdb_sdout.
>
>
> /* gdb_stdout could change between the time cli_uiout was initialized
> and now. Since we're probably using a different interpreter which has
> a new ui_file for gdb_stdout, use that one instead of the default.
>
> It is important that it gets reset everytime, since the user could
> set gdb to use a different interpreter. */
> old_stream = cli_out_set_stream (cli_uiout, gdb_stdout);
Something (two things actually) very much like this were discussed and
we never reached agreement on them. See my patch for a `tee' command
and file redirection; and something similar from Pierre. A couple of
months ago now.
The current version is kind of hokey, since it only works with the CLI.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer