================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to