[Lldb-commits] [lldb] [lldb-dap] Synchronously wait for breakpoints resolves in tests (PR #140470)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Sun May 18 16:51:39 PDT 2025


================
@@ -1187,15 +1187,17 @@ def request_locations(self, locationReference):
         }
         return self.send_recv(command_dict)
 
-    def request_testGetTargetBreakpoints(self):
+    def request_testGetTargetBreakpoints(self, only_resolved=False):
----------------
ashgti wrote:

I'm not sure we need to extend this, we could track the current state of breakpoints in `DebugCommunication` by updating `_handle_recv_packet` to check for breakpoint events and by updating `request_setBreakpoints` (and other kinds of breakpoints functions) to update the state when they get a response from the server.

We could have a helper for getting the current state of a breakpoint by id and move `wait_for_breakpoints_to_resolve` into to `DebugCommunication`.

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


More information about the lldb-commits mailing list