From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32551 invoked by alias); 6 Nov 2002 03:25:44 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32544 invoked from network); 6 Nov 2002 03:25:44 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 6 Nov 2002 03:25:44 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 189HkY-0008P3-00; Tue, 05 Nov 2002 22:25:06 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 189Gpw-0004bH-00; Tue, 05 Nov 2002 22:26:36 -0500 Date: Tue, 05 Nov 2002 19:25:00 -0000 From: Daniel Jacobowitz To: Elena Zannoni Cc: fnasser@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] cli-out.c new function Message-ID: <20021106032636.GC16623@nevyn.them.org> Mail-Followup-To: Elena Zannoni , fnasser@redhat.com, gdb-patches@sources.redhat.com References: <15816.21181.748534.54828@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15816.21181.748534.54828@localhost.redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00089.txt.bz2 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