summaryrefslogtreecommitdiff
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2018-09-08 07:15:56 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2018-09-08 07:15:56 +0000
commit85dacd1116feee2246c4c0ca82ce037bf7d70401 (patch)
tree08957187a1866e958f930140c1161652781ec875 /lldb/source/Core/Debugger.cpp
parentc96305970dd8202f485300fd474237154cd76e63 (diff)
Check if a terminal supports colors on Windows properly
Summary: Previously we SetUseColor(true) wrongly when output was not a terminal so it broken some (not public) bots. Thanks for issue report, @stella.stamenova Reviewers: stella.stamenova, zturner Reviewed By: stella.stamenova Subscribers: abidh, lldb-commits, stella.stamenova Differential Revision: https://reviews.llvm.org/D51772 llvm-svn: 341746
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 2fd7ff4e5ec2..151a77fcc6d4 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -812,7 +812,6 @@ Debugger::Debugger(lldb::LogOutputCallback log_callback, void *baton)
// Enabling use of ANSI color codes because LLDB is using them to highlight
// text.
llvm::sys::Process::UseANSIEscapeCodes(true);
- SetUseColor(true);
#endif
}