From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19271 invoked by alias); 6 Nov 2002 09:08:30 -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 19261 invoked from network); 6 Nov 2002 09:08:29 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.250) by sources.redhat.com with SMTP; 6 Nov 2002 09:08:29 -0000 Received: from laocoon.ics.u-strasbg.fr (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (Postfix) with ESMTP id 3EA9C550; Wed, 6 Nov 2002 10:19:09 +0100 (CET) Message-Id: <5.0.2.1.2.20021106094824.02b66088@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr Date: Wed, 06 Nov 2002 01:08:00 -0000 To: Daniel Jacobowitz , Elena Zannoni , Andrew Cagney From: Pierre Muller Subject: Re: [RFA] cli-out.c new function Cc: fnasser@redhat.com, gdb-patches@sources.redhat.com In-Reply-To: <20021106032636.GC16623@nevyn.them.org> References: <15816.21181.748534.54828@localhost.redhat.com> <15816.21181.748534.54828@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2002-11/txt/msg00094.txt.bz2 At 04:26 06/11/2002, Daniel Jacobowitz wrote: >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. See the following threads: [RFC/RFA] avoid spurious Watchpoint X output on cygwin native target. http://sources.redhat.com/ml/gdb-patches/2002-07/msg00323.html and RFA: Make cli-out follow gdb_stdout http://sources.redhat.com/ml/gdb-patches/2002-07/msg00366.html as well as (which is a different thread, probably because I didn't use Relpy...) http://sources.redhat.com/ml/gdb-patches/2002-08/msg00549.html But honestly, I don't know if the this new function solves the problem... IMHO, standard gdb sources should not have to worry at all about the possible fact that an interpreter is present... The fact that standard gdb code redirects gdb_stdout (or gdb_stderr) should be respected by any interpreter, no? Thus I still think that the best solution is the double pointer one... but Andrew is stronly opposed to that solution.... Pierre Muller Institut Charles Sadron 6,rue Boussingault F 67083 STRASBOURG CEDEX (France) mailto:muller@ics.u-strasbg.fr Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99