diff options
author | Pedro Alves <palves@redhat.com> | 2010-04-17 23:56:27 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-04-17 23:56:27 +0000 |
commit | 172240dd22dba3afdb670a735075ba8f9b6944c5 (patch) | |
tree | 4960971e1a75d17bb733e228b680de0a90c808fe /gdb | |
parent | 12ea4b698643d57c73ac153d8b87adf2db0e8bd8 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ui-file.c | 3 |
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); } |