This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Re: [RFA] cli-out.c new function


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


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