aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-file.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-04-17 23:56:27 +0000
committerPedro Alves <palves@redhat.com>2010-04-17 23:56:27 +0000
commit172240dd22dba3afdb670a735075ba8f9b6944c5 (patch)
tree4960971e1a75d17bb733e228b680de0a90c808fe /gdb/ui-file.c
parent12ea4b698643d57c73ac153d8b87adf2db0e8bd8 (diff)
downloadgdb-172240dd22dba3afdb670a735075ba8f9b6944c5.zip
gdb-172240dd22dba3afdb670a735075ba8f9b6944c5.tar.gz
gdb-172240dd22dba3afdb670a735075ba8f9b6944c5.tar.bz2
* ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
instead of always false.
Diffstat (limited to 'gdb/ui-file.c')
-rw-r--r--gdb/ui-file.c3
1 files changed, 2 insertions, 1 deletions
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);
}