* infcmd.c (show_inferior_tty_command): Check for NULL.
	Correct output message.
This commit is contained in:
Daniel Jacobowitz
2010-02-16 21:18:46 +00:00
parent 70362913a3
commit 275f2e57c2
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
* infcmd.c (show_inferior_tty_command): Check for NULL.
Correct output message.
2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
* linespec.c (decode_line_1): Handle FILE:FUNCTION even if * linespec.c (decode_line_1): Handle FILE:FUNCTION even if

View File

@@ -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 /* Note that we ignore the passed-in value in favor of computing it
directly. */ directly. */
const char *inferior_io_terminal = get_inferior_io_terminal ();
if (inferior_io_terminal == NULL)
inferior_io_terminal = "";
fprintf_filtered (gdb_stdout, fprintf_filtered (gdb_stdout,
_("argument list to give program being debugged when " _("Terminal for future runs of program being debugged "
"it is started is %s"), "is \"%s\".\n"), inferior_io_terminal);
get_inferior_io_terminal ());
} }
char * char *