[Lldb-commits] [lldb] [lldb-dap] Allow returning multiple breakpoints in "stopped" event (PR #149133)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 16 09:30:48 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/lldbdap_testcase.py lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py 2025-07-16 16:09:00.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py 2025-07-16 16:30:20.733379 +0000
@@ -190,11 +190,13 @@
):
continue
if "hitBreakpointIds" not in body:
continue
hit_bps = body["hitBreakpointIds"]
- if all(int(breakpoint_id) in hit_bps for breakpoint_id in breakpoint_ids):
+ if all(
+ int(breakpoint_id) in hit_bps for breakpoint_id in breakpoint_ids
+ ):
return
self.assertTrue(False, f"breakpoints not hit, stopped_events={stopped_events}")
def verify_stop_exception_info(self, expected_description, timeout=DEFAULT_TIMEOUT):
"""Wait for the process we are debugging to stop, and verify the stop
--- test/API/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.py 2025-07-16 16:09:00.000000 +0000
+++ test/API/tools/lldb-dap/breakpoint/TestDAP_setBreakpoints.py 2025-07-16 16:30:20.859197 +0000
@@ -403,11 +403,11 @@
def test_hit_multiple_breakpoints(self):
"""Test that if we hit multiple breakpoints at the same address, they
all appear in the stop reason."""
breakpoint_lines = [
line_number("main.cpp", "// end of foo check"),
- line_number("main.cpp", "// before loop")
+ line_number("main.cpp", "// before loop"),
]
program = self.getBuildArtifact("a.out")
self.build_and_launch(program)
``````````
</details>
https://github.com/llvm/llvm-project/pull/149133
More information about the lldb-commits
mailing list