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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 6 07:33:50 PST 2023


================
@@ -762,8 +818,11 @@ bool Address::Dump(Stream *s, ExecutionContextScope *exe_scope, DumpStyle style,
         }
       }
     } else {
-      if (fallback_style != DumpStyleInvalid)
+      if (fallback_style != DumpStyleInvalid && !name)
         return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size);
+      else if(fallback_style != DumpStyleInvalid && name){
+        return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size, false, name);
+      }
----------------
DavidSpickett wrote:

Make this a single call that always passes `name`.

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


More information about the lldb-commits mailing list