kastiglione added inline comments.

================
Comment at: lldb/examples/python/cont_to_bkpt.py:21
+
+        if len(bkpt_ids) == 0:
+            result.SetError("No breakpoint to run to")
----------------
can also be `if not bkpt_ids:`


================
Comment at: lldb/examples/python/cont_to_bkpt.py:31-32
+        if not exe_ctx.process.IsValid():
+            result.SetError("Need a valid process")
+            result.SetStatus(lldb.eReturnStatusFailed)
+            return
----------------
these `SetStatus` lines aren't necessary since `SetError(…)` internally calls 
`SetStatus(eReturnStatusFailed)`.


================
Comment at: lldb/examples/python/cont_to_bkpt.py:39
+            bkpt_id = bkpt.GetID()
+            if not bkpt_id in bkpt_ids:
+                if bkpt.enabled:
----------------
can also be `if bkpt_id not in bkpt_ids:`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125148/new/

https://reviews.llvm.org/D125148

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to