[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:18 PST 2023
================
@@ -163,7 +166,10 @@ bool SymbolContext::DumpStopContext(Stream *s, ExecutionContextScope *exe_scope,
dumped_something = true;
if (symbol->GetType() == eSymbolTypeTrampoline)
s->PutCString("symbol stub for: ");
- symbol->GetName().Dump(s);
+ if (pattern)
+ Address::DumpName(s, symbol->GetName().GetStringRef(), pattern);
+ else
+ symbol->GetName().Dump(s);
----------------
DavidSpickett wrote:
Same here, I think you can just always call Address::DumpName and it'll take the fast path if pattern is nullptr.
https://github.com/llvm/llvm-project/pull/69422
More information about the lldb-commits
mailing list