[Lldb-commits] [lldb] [lldb] colorize symbols in image lookup with a regex pattern (PR #69422)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 4 09:56:16 PST 2023


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


================
@@ -1593,6 +1595,7 @@ static uint32_t LookupSymbolInModule(CommandInterpreter &interpreter,
     return 0;
 
   SymbolContext sc;
+  bool use_color = interpreter.GetDebugger().GetUseColor();
----------------
JDevlieghere wrote:

Unlike in llvm we do `const` variables (and there's examples of that in the surrounding code) so let's make this `const bool use_color`. 

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


More information about the lldb-commits mailing list