[Lldb-commits] [lldb] [lldb][breakpointoptions] Make disabled keyword red (PR #91404)
via lldb-commits
lldb-commits at lists.llvm.org
Tue May 7 15:27:07 PDT 2024
================
@@ -534,7 +534,8 @@ void BreakpointOptions::GetDescription(Stream *s,
if (m_ignore_count > 0)
s->Printf("ignore: %d ", m_ignore_count);
- s->Printf("%sabled ", m_enabled ? "en" : "dis");
+ s->PutCStringColorHighlighted(m_enabled ? "enabled " : "disabled ",
+ m_disbaled_breakpoint_highlight_settings);
----------------
jimingham wrote:
Note, you can get this output both when lldb decides to print in the terminal, and when someone does:
```
stream = lldb.SBStream()
bkpt.GetDescription(stream, eDescriptionLevelWhatever)
```
At present SBStream's are backed by StreamString objects which get constructed with use_color -> false. So you should be okay there.
https://github.com/llvm/llvm-project/pull/91404
More information about the lldb-commits
mailing list