Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org,  Eli Zaretskii <eliz@gnu.org>
Subject: Re: Don't allow switching on the TUI in some cases
Date: Wed, 31 Mar 2010 11:47:00 -0000	[thread overview]
Message-ID: <201003311247.07191.pedro@codesourcery.com> (raw)
In-Reply-To: <83hbnxymmd.fsf@gnu.org>

On Wednesday 31 March 2010 08:30:02, Eli Zaretskii wrote:
> > From: Pedro Alves <pedro@codesourcery.com>
> > 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  <pedro@codesourcery.com>

	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


  reply	other threads:[~2010-03-31 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-30 22:23 Pedro Alves
2010-03-31  7:30 ` Eli Zaretskii
2010-03-31 11:47   ` Pedro Alves [this message]
2010-03-31 12:09     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201003311247.07191.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox