aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2016-08-24 13:10:08 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2016-08-24 13:10:08 -0400
commit0a1ddfa6b67201bb06f51fb47b56096e81bec5c0 (patch)
tree1e26eec2dfe35fc59fe4709b33e059a153178960 /gdb/doc
parentbdd78711b4c1ae26dbc8c2a64f28abec3486ae6c (diff)
downloadbinutils-0a1ddfa6b67201bb06f51fb47b56096e81bec5c0.zip
binutils-0a1ddfa6b67201bb06f51fb47b56096e81bec5c0.tar.gz
binutils-0a1ddfa6b67201bb06f51fb47b56096e81bec5c0.tar.bz2
Allow resetting an empty inferior-tty
This patch allows the user to set the inferior-tty to "empty", in order to come back to the default behaviour of using the same tty as gdb is using. This is already supported in MI (and tested in gdb.mi/mi-basics.exp). I added a new test, set-inferior-tty.exp, where I test only the setting and unsetting of the parameter. It would be nice to actually test that the inferior output properly goes to the separate tty, but that will be for another day. gdb/ChangeLog: * infcmd.c (set_inferior_io_terminal): Set inferior terminal to NULL if terminal_name is an empty string. (_initialize_infcmd): Make the argument of "set inferior-tty" optional, mention it in the help doc. gdb/doc/ChangeLog: * gdb.texinfo (Input/Output): Mention possibility to unset inferior-tty. gdb/testsuite/ChangeLog: * gdb.base/set-inferior-tty.exp: New file. * gdb.base/set-inferior-tty.c: New file.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo6
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index cc9bc70..c6fe47c 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb.texinfo (Input/Output): Mention possibility to unset
+ inferior-tty.
+
2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
* gdb.texinfo: Resume btrace on reconnect.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index f5dde61..d1a5e7c 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}.
@item show inferior-tty
@kindex show inferior-tty