aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ui-file.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9aa915c..4d22fcf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/ui-file.c b/gdb/ui-file.c
index 1760b4c..493ae43 100644
--- a/gdb/ui-file.c
+++ b/gdb/ui-file.c
@@ -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);
}