[Lldb-commits] [lldb] Colorize output when searching for symbols in lldb (PR #69422)

José Lira Junior via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 14 08:18:58 PST 2023


================
@@ -95,7 +97,8 @@ bool SymbolContext::DumpStopContext(Stream *s, ExecutionContextScope *exe_scope,
       if (!name)
         name = function->GetName();
       if (name)
-        name.Dump(s);
+        pattern ? Address::DumpName(s, name.GetStringRef(), pattern)
+                : name.Dump(s);
----------------
junior-jl wrote:

True. I did not do this in first place, because I didn't realize that `Dump(s)` would basically be `s.PutCString(name)`. Changed this.

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


More information about the lldb-commits mailing list