diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-06-17 19:53:11 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-06-17 19:53:11 +0000 |
commit | f9626f27c8ea967a68e9b53cdc2b9565658c19d8 (patch) | |
tree | ac57403adb9e777cfbe8b160328b51a617753d94 /lldb/source/Core/FormatEntity.cpp | |
parent | 4f3b7364a4595a547b246d00f07e38630bf2cf97 (diff) | |
download | bcm5719-llvm-f9626f27c8ea967a68e9b53cdc2b9565658c19d8.tar.gz bcm5719-llvm-f9626f27c8ea967a68e9b53cdc2b9565658c19d8.zip |
Add color to the default thread and frame format.
Now that we correctly ignore ASCII escape sequences when colors are
disabled (r362240), I'd like to change the default frame and thread
format to include color in their output, in line with the syntax
highlighting that Raphael added a while ago.
This patch adds highlighting for the stop reason, the file, line and
column number. With colors disabled, this of course is a no-op.
Differential revision: https://reviews.llvm.org/D62743
llvm-svn: 363608
Diffstat (limited to 'lldb/source/Core/FormatEntity.cpp')
-rw-r--r-- | lldb/source/Core/FormatEntity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp index 6af3a47ca1c..1ffbed2cd64 100644 --- a/lldb/source/Core/FormatEntity.cpp +++ b/lldb/source/Core/FormatEntity.cpp @@ -1109,11 +1109,11 @@ bool FormatEntity::Format(const Entry &entry, Stream &s, Debugger &debugger = target->GetDebugger(); if (debugger.GetUseColor()) { s.PutCString(entry.string); - return true; } } } - return false; + // Always return true, so colors being disabled is transparent. + return true; case Entry::Type::Root: for (const auto &child : entry.children) { |