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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 15 02:58:36 PST 2023


=?utf-8?q?José?= L. Junior <josejunior at 10xengineers.ai>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/69422 at github.com>


================
@@ -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:

This one still needs fixing, can be one call to PutCString... I think.

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


More information about the lldb-commits mailing list