Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@ericsson.com>
To: Pedro Alves <palves@redhat.com>, <gdb-patches@sourceware.org>,
	Eli Zaretskii <eliz@gnu.org>
Subject: Re: [PATCH] Allow resetting an empty inferior-tty
Date: Wed, 24 Aug 2016 15:55:00 -0000	[thread overview]
Message-ID: <5177e9d5-abcc-b31a-15c8-e3558e467d70@ericsson.com> (raw)
In-Reply-To: <83692a3c-621a-4aa5-5025-45cfa61b1b81@redhat.com>

On 16-08-24 11:41 AM, Pedro Alves wrote:
> Something else.  :-)
> 
> I meant "(gdb) help set inferior-tty", the bit quoted above.

Ah, that kind of online :P

What about:

@@ -3224,14 +3228,16 @@ _initialize_infcmd (void)
   const char *cmd_name;

   /* Add the filename of the terminal connected to inferior I/O.  */
-  add_setshow_filename_cmd ("inferior-tty", class_run,
-			    &inferior_io_terminal_scratch, _("\
+  add_setshow_optional_filename_cmd ("inferior-tty", class_run,
+				     &inferior_io_terminal_scratch, _("\
 Set terminal for future runs of program being debugged."), _("\
 Show terminal for future runs of program being debugged."), _("\
-Usage: set inferior-tty /dev/pts/1"),
-			    set_inferior_tty_command,
-			    show_inferior_tty_command,
-			    &setlist, &showlist);
+Usage: set inferior-tty [TTY]\n\n\
+If TTY is omitted, the default behavior of using the same terminal as GDB\n\
+is restored."),
+				     set_inferior_tty_command,
+				     show_inferior_tty_command,
+				     &setlist, &showlist);
   add_com_alias ("tty", "set inferior-tty", class_alias, 0);

   cmd_name = "args";


For this result:

(gdb) help set inferior-tty
Set terminal for future runs of program being debugged.
Usage: set inferior-tty [TTY]

If TTY is omitted, the default behavior of using the same terminal as GDB
is restored.
(gdb)


  reply	other threads:[~2016-08-24 15:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24 14:52 Simon Marchi
2016-08-24 15:05 ` Eli Zaretskii
2016-08-24 15:24   ` Simon Marchi
2016-08-24 15:58     ` Eli Zaretskii
2016-08-24 15:33 ` Pedro Alves
2016-08-24 15:38   ` Simon Marchi
2016-08-24 15:41     ` Pedro Alves
2016-08-24 15:55       ` Simon Marchi [this message]
2016-08-24 16:20         ` Pedro Alves
2016-08-24 17:11           ` Simon Marchi
2016-08-24 17:22             ` Simon Marchi
2016-08-29 10:55               ` [testsuite patch+7.12] gdb.base/default.exp regression [Re: [PATCH] Allow resetting an empty inferior-tty] Jan Kratochvil
2016-08-29 12:39                 ` Simon Marchi
2016-08-29 13:01                 ` Pedro Alves
2016-08-29 13:22                   ` [commit] " Jan Kratochvil

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=5177e9d5-abcc-b31a-15c8-e3558e467d70@ericsson.com \
    --to=simon.marchi@ericsson.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /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