* ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
authorPedro Alves <palves@redhat.com>
Sat, 17 Apr 2010 23:56:27 +0000 (23:56 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 17 Apr 2010 23:56:27 +0000 (23:56 +0000)
instead of always false.

gdb/ChangeLog
gdb/ui-file.c

index 9aa915c655a2467fec91f28543903c5a1e3d093d..4d22fcf3ac04574031b40d0d3633e69bb10f41b6 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-17  Pedro Alves  <pedro@codesourcery.com>
+
+       * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
+       instead of always false.
+
 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR corefiles/11511
index 1760b4c05288cf3b60329f4f34e23ab771fd9403..493ae43930280ccd1e2a741e294e36bf44da1c99 100644 (file)
@@ -648,5 +648,6 @@ tee_file_isatty (struct ui_file *file)
   if (tee->magic != &tee_file_magic)
     internal_error (__FILE__, __LINE__,
                    _("tee_file_isatty: bad magic number"));
-  return (0);
+
+  return ui_file_isatty (tee->one);
 }