[Lldb-commits] [lldb] [llvm] [WIP][lldb-dap] Add support for data breakpoint. (PR #81541)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 12 17:45:35 PST 2024


================
@@ -895,6 +906,32 @@ def request_setFunctionBreakpoints(self, names, condition=None, hitCondition=Non
         }
         return self.send_recv(command_dict)
 
+    def request_dataBreakpointInfo(self, variablesReference, name):
+        args_dict = {"variablesReference": variablesReference, "name": name}
+        command_dict = {
+            "command": "dataBreakpointInfo",
+            "type": "request",
+            "arguments": args_dict,
+        }
+        return self.send_recv(command_dict)
+
+    def request_setDataBreakpoint(self, dataBreakpoints):
+        """dataBreakpoints is a list of dictionary with following fields:
----------------
walter-erquinigo wrote:

`list of dictionary` sounds very weird. Did you mean something else?

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


More information about the lldb-commits mailing list