From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19824 invoked by alias); 31 Mar 2010 11:47:18 -0000 Received: (qmail 19812 invoked by uid 22791); 31 Mar 2010 11:47:17 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 31 Mar 2010 11:47:11 +0000 Received: (qmail 24939 invoked from network); 31 Mar 2010 11:47:09 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 31 Mar 2010 11:47:09 -0000 From: Pedro Alves To: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: Don't allow switching on the TUI in some cases Date: Wed, 31 Mar 2010 11:47:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-20-generic; KDE/4.3.2; x86_64; ; ) References: <201003302323.40127.pedro@codesourcery.com> <83hbnxymmd.fsf@gnu.org> In-Reply-To: <83hbnxymmd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003311247.07191.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg01111.txt.bz2 On Wednesday 31 March 2010 08:30:02, Eli Zaretskii wrote: > > From: Pedro Alves > > Date: Tue, 30 Mar 2010 23:23:40 +0100 > > > > void > > tui_enable (void) > > { > > + if (!tui_allowed_p ()) > > + error (_("TUI mode not allowed")); > > + > > Does this need a suitable change for the manual? We currently say > this in the "TUI Commands" node: > > The TUI has specific commands to control the text windows. These > commands are always available, even when GDB is not in the TUI mode. > When GDB is in the standard mode, most of these commands will > automatically switch to the TUI mode. > > Looks like this is no longer true with this patch, is that right? I had considered it and thought it could be more noise than signal to extend that, but, maybe if I keep it a separate paragraph it's okay. How about this? -- Pedro Alves 2010-03-31 Pedro Alves gdb/doc/ * gdb.texinfo (TUI Commands): Mention that in some cases, these commands error out. --- gdb/doc/gdb.texinfo | 6 ++++++ 1 file changed, 6 insertions(+) Index: src/gdb/doc/gdb.texinfo =================================================================== --- src.orig/gdb/doc/gdb.texinfo 2010-03-31 12:32:17.000000000 +0100 +++ src/gdb/doc/gdb.texinfo 2010-03-31 12:42:53.000000000 +0100 @@ -21653,6 +21653,12 @@ These commands are always available, eve the TUI mode. When @value{GDBN} is in the standard mode, most of these commands will automatically switch to the TUI mode. +Note that if @value{GDBN}'s @code{stdout} is not connected to a +terminal, or @value{GDBN} has been started with the machine interface +interpreter (@pxref{GDB/MI, ,The @sc{gdb/mi} Interface}), most of +these commands will fail with an error, because it would not be +possible or desirable to enable curses window management. + @table @code @item info win @kindex info win