From: Pedro Alves Date: Sat, 17 Apr 2010 23:56:27 +0000 (+0000) Subject: * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=172240dd22dba3afdb670a735075ba8f9b6944c5;p=binutils-gdb.git * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, instead of always false. --- 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); }