[Lldb-commits] [lldb] [lldb][breakpointoptions] Make disabled keyword red (PR #91404)

Chelsea Cassanova via lldb-commits lldb-commits at lists.llvm.org
Tue May 7 16:40:50 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);
----------------
chelcassanova wrote:

This means that only the debugger tells you whether or not you're using colours then? `BreakpointOptions::GetDescription()` doesn't seem to have a reference to the debugger, target or interpreter so I'm wondering what the next best options to determine if we're using colours is. 

https://github.com/llvm/llvm-project/pull/91404


More information about the lldb-commits mailing list