From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32286 invoked by alias); 27 Aug 2002 19:27:18 -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 32276 invoked from network); 27 Aug 2002 19:27:17 -0000 Received: from unknown (HELO kraid.nerim.net) (62.4.16.95) by sources.redhat.com with SMTP; 27 Aug 2002 19:27:17 -0000 Received: from nerim.fr (stcarrez.net1.nerim.net [62.212.108.40]) by kraid.nerim.net (Postfix) with ESMTP id CE91E40F79; Tue, 27 Aug 2002 21:16:29 +0200 (CEST) Message-ID: <3D6BEE1A.3080700@nerim.fr> Date: Tue, 27 Aug 2002 12:32: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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00901.txt.bz2 Hi! Elena Zannoni wrote: > Stephane Carrez writes: > > Hi! > > > > The TUI relies on the modification of the 'uiout' to switch correctly > > between TUI mode and normal mode. It installs its own ui-out function to > > catch the output and redirect it in the appropriate curses window. > > It installs gdb's normal ui-out function when using the plain terminal > > (non-TUI mode). > > > I am a bit confused here about the uiout switch. I see that it does it > when you start up the TUI, but there is also a mode switch with > tui_switch_mode. How does this interact with your change? > It's because we can switch on/off the TUI mode while gdb is running (independently of -tui option). CTRL-X CTRL-A is bound to tui_switch_mode() which enables TUI mode or disable it (the effect is similar to using the gdb -tui option, or, not using that option). The tui_enable() and tui_disable() do all the necessary stuff such as enter/leave the curses mode, install/remove specific TUI gdb hooks. The 'uiout' is also switched here so that we write on gdb_stdout or in curses window. Stephane