[Lldb-commits] [lldb] Colorize output when searching for symbols in lldb (PR #69422)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 14 01:34:17 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);
----------------
DavidSpickett wrote:
Could you just call Address::DumpName all the time here? If `pattern` is `nullptr` it will take the fast path and just dump the string won't it?
https://github.com/llvm/llvm-project/pull/69422
More information about the lldb-commits
mailing list