[Lldb-commits] [lldb] [lldb] Implement a statusline in LLDB (PR #121860)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 22 11:17:27 PST 2025


================
@@ -1198,13 +1207,13 @@ bool FormatEntity::Format(const Entry &entry, Stream &s,
                                   // FormatEntity::Entry::Definition encoding
     return false;
   case Entry::Type::EscapeCode:
-    if (exe_ctx) {
-      if (Target *target = exe_ctx->GetTargetPtr()) {
-        Debugger &debugger = target->GetDebugger();
-        if (debugger.GetUseColor()) {
-          s.PutCString(entry.string);
-        }
+    if (Target *target = Target::GetTargetFromContexts(exe_ctx, sc)) {
+      Debugger &debugger = target->GetDebugger();
+      if (debugger.GetUseColor()) {
+        s.PutCString(entry.string);
       }
+    } else {
+      assert(false);
----------------
bulbazord wrote:

Looks like you were using this assertion for debugging purposes?

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


More information about the lldb-commits mailing list