[Lldb-commits] [lldb] [lldb-dap] Add data breakpoints for bytes (PR #167237)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 10 10:10:32 PST 2025


================
@@ -1234,16 +1234,24 @@ def request_setFunctionBreakpoints(self, names, condition=None, hitCondition=Non
         return response
 
     def request_dataBreakpointInfo(
-        self, variablesReference, name, frameIndex=0, threadId=None
+        self, variablesReference, name, size=None, frameIndex=0, threadId=None
     ):
         stackFrame = self.get_stackFrame(frameIndex=frameIndex, threadId=threadId)
         if stackFrame is None:
             return []
-        args_dict = {
-            "variablesReference": variablesReference,
-            "name": name,
-            "frameId": stackFrame["id"],
-        }
+        args_dict = (
+            {
+                "variablesReference": variablesReference,
+                "name": name,
+                "frameId": stackFrame["id"],
+            }
+            if size is None
----------------
ashgti wrote:

Can we lift this to a statement instead of an inline expression like this?

This is a bit complex for an inline if

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


More information about the lldb-commits mailing list