[Lldb-commits] [lldb] [LLDB-DAP] SBDebugger don't prefix title on progress updates (PR #124648)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 19 17:13:48 PST 2025


================
@@ -68,10 +78,23 @@ def __call__(self, debugger, command, exe_ctx, result):
             return
 
         total = cmd_options.total
-        progress = lldb.SBProgress("Progress tester", "Detail", total, debugger)
+        if total == -1:
+            progress = lldb.SBProgress(
+                "Progress tester", "Indeterminate Detail", debugger
+            )
+        else:
+            progress = lldb.SBProgress("Progress tester", "Detail", total, debugger)
+
+        # Check to see if total is set to -1 to indicate an indeterminate progress
+        # then default to 10 steps.
+        if total == -1:
----------------
clayborg wrote:

```
if total is None:
```

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


More information about the lldb-commits mailing list