gdb/
authorDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:18:46 +0000 (21:18 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:18:46 +0000 (21:18 +0000)
* infcmd.c (show_inferior_tty_command): Check for NULL.
Correct output message.

gdb/ChangeLog
gdb/infcmd.c

index d7d71fde5704c4a5c0480ab8ee9f9aaaca8364b7..077528a1ed111d2aad473078ea86c73e00e2e3db 100644 (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>
 
        * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
index f99a4aed9696e3a636587b4e456974bcd259f677..29cf4278314c0957d2d996c7b7f0517d749f3331 100644 (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
      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 *
This page took 0.028495 seconds and 4 git commands to generate.