This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Allow resetting an empty inferior-tty
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 24 Aug 2016 18:05:37 +0300
- Subject: Re: [PATCH] Allow resetting an empty inferior-tty
- Authentication-results: sourceware.org; auth=none
- References: <20160824144548.19204-1-simon.marchi@ericsson.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Simon Marchi <simon.marchi@ericsson.com>
> CC: Simon Marchi <simon.marchi@ericsson.com>
> Date: Wed, 24 Aug 2016 10:45:48 -0400
>
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index f5dde61..f00729a 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -2499,9 +2499,11 @@ display the name of the terminal that will be used for future runs of your
> program.
>
> @table @code
> -@item set inferior-tty /dev/ttyb
> +@item set inferior-tty @var{tty}
> @kindex set inferior-tty
> -Set the tty for the program being debugged to /dev/ttyb.
> +Set the tty for the program being debugged to @var{tty}. Omitting @var{tty}
> +restores the default behavior, which is to use the same terminal as
> +@value{GDBN}.
Thanks. If the argument is optional, please show it as such, as we do
elsewhere in the manual.
OK with this nit fixed.
P.S. Btw, it is strange that your log entry says
gdb/doc/ChangeLog:
* gdb.texinfo (Your Program’s Input and Output): Mention
possibility to unset inferior-tty.
whereas the node's name is "Input/Output", and the section's name is
"Your Program's Input and Output", without any non-ASCII characters.
What happened there?