From 172240dd22dba3afdb670a735075ba8f9b6944c5 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sat, 17 Apr 2010 23:56:27 +0000 Subject: [PATCH] * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, instead of always false. --- gdb/ChangeLog | 5 +++++ gdb/ui-file.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9aa915c655a..4d22fcf3ac0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-04-17 Pedro Alves + + * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, + instead of always false. + 2010-04-17 H.J. Lu PR corefiles/11511 diff --git a/gdb/ui-file.c b/gdb/ui-file.c index 1760b4c0528..493ae439302 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); } -- 2.30.2