================ @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits