From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31634 invoked by alias); 27 Aug 2002 20:27: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 31627 invoked from network); 27 Aug 2002 20:27:29 -0000 Received: from unknown (HELO mallaury.noc.nerim.net) (62.4.17.82) by sources.redhat.com with SMTP; 27 Aug 2002 20:27:29 -0000 Received: from nerim.fr (stcarrez.net1.nerim.net [62.212.108.40]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 24E8862D0F; Tue, 27 Aug 2002 22:27:26 +0200 (CEST) Message-ID: <3D6BFCCE.4050607@nerim.fr> Date: Tue, 27 Aug 2002 13:28:00 -0000 From: Stephane Carrez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 To: Elena Zannoni Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA]: Make gdb_do_one_event public and fix uiout setting for TUI References: <3D6AB1C8.5050403@nerim.fr> <15722.45251.205480.778379@localhost.redhat.com> <3D6BEE1A.3080700@nerim.fr> <15723.56589.602934.533654@localhost.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00905.txt.bz2 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