[Lldb-commits] [lldb] Re-land [lldb-dap] Add support for data breakpoint. (PR #81909)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 15 11:39:22 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r e82659fff2f07b5ea1d94e0d8bcb9c540d6bede1...757013af5361f5bf0f486d7ac0ee2f6980248f15 lldb/test/API/tools/lldb-dap/databreakpoint/TestDAP_setDataBreakpoints.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test/API/tools/lldb-dap/databreakpoint/TestDAP_setDataBreakpoints.py 2024-02-15 19:31:01.000000 +0000
+++ test/API/tools/lldb-dap/databreakpoint/TestDAP_setDataBreakpoints.py 2024-02-15 19:39:15.384210 +0000
@@ -33,14 +33,15 @@
self.assertEquals(response_arr_2["body"]["accessTypes"], self.accessTypes)
dataBreakpoints = [
{"dataId": response_x["body"]["dataId"], "accessType": "write"},
{"dataId": response_arr_2["body"]["dataId"], "accessType": "write"},
]
- set_response = self.dap_server.request_setDataBreakpoint(
- dataBreakpoints)
- self.assertEquals(set_response["body"]["breakpoints"], [
- {"verified": True}, {"verified": True}])
+ set_response = self.dap_server.request_setDataBreakpoint(dataBreakpoints)
+ self.assertEquals(
+ set_response["body"]["breakpoints"],
+ [{"verified": True}, {"verified": True}],
+ )
self.continue_to_next_stop()
x_val = self.dap_server.get_local_variable_value("x")
i_val = self.dap_server.get_local_variable_value("i")
self.assertEquals(x_val, "2")
@@ -77,14 +78,15 @@
self.assertEquals(response_arr_2["body"]["accessTypes"], self.accessTypes)
dataBreakpoints = [
{"dataId": response_x["body"]["dataId"], "accessType": "write"},
{"dataId": response_arr_2["body"]["dataId"], "accessType": "write"},
]
- set_response = self.dap_server.request_setDataBreakpoint(
- dataBreakpoints)
- self.assertEquals(set_response["body"]["breakpoints"], [
- {"verified": True}, {"verified": True}])
+ set_response = self.dap_server.request_setDataBreakpoint(dataBreakpoints)
+ self.assertEquals(
+ set_response["body"]["breakpoints"],
+ [{"verified": True}, {"verified": True}],
+ )
self.continue_to_next_stop()
x_val = self.dap_server.get_local_variable_value("x")
i_val = self.dap_server.get_local_variable_value("i")
self.assertEquals(x_val, "2")
@@ -106,14 +108,12 @@
"dataId": response_x["body"]["dataId"],
"accessType": "write",
"hitCondition": "2",
}
]
- set_response = self.dap_server.request_setDataBreakpoint(
- dataBreakpoints)
- self.assertEquals(set_response["body"]["breakpoints"], [
- {"verified": True}])
+ set_response = self.dap_server.request_setDataBreakpoint(dataBreakpoints)
+ self.assertEquals(set_response["body"]["breakpoints"], [{"verified": True}])
self.continue_to_next_stop()
x_val = self.dap_server.get_local_variable_value("x")
self.assertEquals(x_val, "3")
# Test condition
@@ -122,12 +122,10 @@
"dataId": response_x["body"]["dataId"],
"accessType": "write",
"condition": "x==10",
}
]
- set_response = self.dap_server.request_setDataBreakpoint(
- dataBreakpoints)
- self.assertEquals(set_response["body"]["breakpoints"], [
- {"verified": True}])
+ set_response = self.dap_server.request_setDataBreakpoint(dataBreakpoints)
+ self.assertEquals(set_response["body"]["breakpoints"], [{"verified": True}])
self.continue_to_next_stop()
x_val = self.dap_server.get_local_variable_value("x")
self.assertEquals(x_val, "10")
``````````
</details>
https://github.com/llvm/llvm-project/pull/81909
More information about the lldb-commits
mailing list