aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-linux-nat.c
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:16:34 -0400
commit2b3eaab2c3eadd12bbd56499c00dca8cefb81552 (patch)
treef6d38e70d80d7d7c92397adad18ba30dd614c669 /gdb/arm-linux-nat.c
parent608bf994ef03213c7f78540adfe51c53a571277e (diff)
downloadgdb-2b3eaab2c3eadd12bbd56499c00dca8cefb81552.zip
gdb-2b3eaab2c3eadd12bbd56499c00dca8cefb81552.tar.gz
gdb-2b3eaab2c3eadd12bbd56499c00dca8cefb81552.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/arm-linux-nat.c')
0 files changed, 0 insertions, 0 deletions