[Lldb-commits] [lldb] Support breakpoint info bytes (PR #141122)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 22 12:02:56 PDT 2025
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 HEAD~1...HEAD lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py lldb/test/API/tools/lldb-dap/databreakpoint/TestDAP_setDataBreakpoints.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py 2025-05-22 18:19:07.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py 2025-05-22 19:02:27.147442 +0000
@@ -1040,18 +1040,17 @@
"arguments": args_dict,
}
return self.send_recv(command_dict)
def request_dataBreakpointInfo(
- self,
- name: str,
- variablesReference: int = None,
- frameIndex: int = 0,
- bytes_: int = None,
- asAddress: bool = None,
+ self,
+ name: str,
+ variablesReference: int = None,
+ frameIndex: int = 0,
+ bytes_: int = None,
+ asAddress: bool = None,
):
-
args_dict = {}
if asAddress is not None:
args_dict = {
"name": name,
"asAddress": asAddress,
--- packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py 2025-05-22 18:19:07.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py 2025-05-22 19:02:27.314506 +0000
@@ -103,11 +103,11 @@
return True
time.sleep(0.5)
return False
def verify_breakpoint_hit(
- self, breakpoint_ids, timeout=DEFAULT_TIMEOUT, is_watchpoint=False
+ self, breakpoint_ids, timeout=DEFAULT_TIMEOUT, is_watchpoint=False
):
"""Wait for the process we are debugging to stop, and verify we hit
any breakpoint location in the "breakpoint_ids" array.
"breakpoint_ids" should be a list of breakpoint ID strings
(["1", "2"]). The return value from self.set_source_breakpoints()
@@ -331,16 +331,16 @@
def continue_to_next_stop(self, timeout=DEFAULT_TIMEOUT):
self.do_continue()
return self.dap_server.wait_for_stopped(timeout)
def continue_to_breakpoint(
- self, breakpoint_id: str, timeout=DEFAULT_TIMEOUT, is_watchpoint=False
+ self, breakpoint_id: str, timeout=DEFAULT_TIMEOUT, is_watchpoint=False
):
self.continue_to_breakpoints([breakpoint_id], timeout, is_watchpoint)
def continue_to_breakpoints(
- self, breakpoint_ids, timeout=DEFAULT_TIMEOUT, is_watchpoint=False
+ self, breakpoint_ids, timeout=DEFAULT_TIMEOUT, is_watchpoint=False
):
self.do_continue()
self.verify_breakpoint_hit(breakpoint_ids, timeout, is_watchpoint)
def continue_to_exception_breakpoint(self, filter_label, timeout=DEFAULT_TIMEOUT):
``````````
</details>
https://github.com/llvm/llvm-project/pull/141122
More information about the lldb-commits
mailing list