diff options
author | Daniel Jacobowitz <drow@false.org> | 2010-02-16 21:18:46 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2010-02-16 21:18:46 +0000 |
commit | 275f2e57c2a0194f9606ca966506ceb5ce0677b5 (patch) | |
tree | a25dfc09c9ebf8d7c58ddb6a6c8a73e83e1539e5 /gdb/infcmd.c | |
parent | 70362913a3298c64642c51fa561406ab2fe2f409 (diff) | |
download | gdb-275f2e57c2a0194f9606ca966506ceb5ce0677b5.zip gdb-275f2e57c2a0194f9606ca966506ceb5ce0677b5.tar.gz gdb-275f2e57c2a0194f9606ca966506ceb5ce0677b5.tar.bz2 |
gdb/
* infcmd.c (show_inferior_tty_command): Check for NULL.
Correct output message.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index f99a4ae..29cf427 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -197,10 +197,12 @@ show_inferior_tty_command (struct ui_file *file, int from_tty, { /* Note that we ignore the passed-in value in favor of computing it directly. */ + const char *inferior_io_terminal = get_inferior_io_terminal (); + if (inferior_io_terminal == NULL) + inferior_io_terminal = ""; fprintf_filtered (gdb_stdout, - _("argument list to give program being debugged when " - "it is started is %s"), - get_inferior_io_terminal ()); + _("Terminal for future runs of program being debugged " + "is \"%s\".\n"), inferior_io_terminal); } char * |