From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23018 invoked by alias); 9 Sep 2002 22:07:24 -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 23002 invoked from network); 9 Sep 2002 22:07:23 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 9 Sep 2002 22:07:23 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id 39EAF106CC; Mon, 9 Sep 2002 18:05:33 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15741.6957.94459.10218@localhost.redhat.com> Date: Mon, 09 Sep 2002 15:07:00 -0000 To: Stephane Carrez Cc: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA]: Make gdb_do_one_event public and fix uiout setting for TUI In-Reply-To: <3D6BFCCE.4050607@nerim.fr> References: <3D6AB1C8.5050403@nerim.fr> <15722.45251.205480.778379@localhost.redhat.com> <3D6BEE1A.3080700@nerim.fr> <15723.56589.602934.533654@localhost.redhat.com> <3D6BFCCE.4050607@nerim.fr> X-SW-Source: 2002-09/txt/msg00133.txt.bz2 Stephane Carrez writes: > Hi! > > Elena Zannoni wrote: > > > > > > > I am not sure I understand this change, can you comment a bit? > > > > a init_ui_hook. */ > > - uiout = cli_out_new (gdb_stdout); > > + tui_old_uiout = uiout = cli_out_new (gdb_stdout); > > > > > When we start gdb without -tui, the 'tui_old_uiout' was not > set because 'tui_enable/tui_disable' are not called. This is because > we are initializing gdb and thus there are no hooks to remove (ie no > need to and must not call tui_disable). > > Later on in the tui loop, the 'tui_old_uiout' is used to re-initialize > 'uiout' (since we are not in TUI mode). > > Stephane > OK. Thank you. Your proposed changes to event-loop.[ch] are approved. Elena