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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 7 06:02:04 PST 2025


================
@@ -1912,7 +1919,30 @@ bool FormatEntity::Format(const Entry &entry, Stream &s,
       return true;
     }
     return false;
+
+  case Entry::Type::ProgressCount:
+    if (Target *target = Target::GetTargetFromContexts(exe_ctx, sc)) {
+      Debugger &debugger = target->GetDebugger();
----------------
DavidSpickett wrote:

You could combine this into the if below to save a line. Given that you have no null checking for target and GetDebugger returns a reference, you're assuming it will succeed.

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


More information about the lldb-commits mailing list