From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28003 invoked by alias); 27 Aug 2002 20:13:57 -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 27968 invoked from network); 27 Aug 2002 20:13:56 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 27 Aug 2002 20:13:56 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id C6FC010AAA; Tue, 27 Aug 2002 16:11:57 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15723.56589.602934.533654@localhost.redhat.com> Date: Tue, 27 Aug 2002 13:27: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: <3D6BEE1A.3080700@nerim.fr> References: <3D6AB1C8.5050403@nerim.fr> <15722.45251.205480.778379@localhost.redhat.com> <3D6BEE1A.3080700@nerim.fr> X-SW-Source: 2002-08/txt/msg00904.txt.bz2 Stephane Carrez writes: > 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). > ah ok. > 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 > 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); Thanks Elena