[Lldb-commits] [lldb] [lldb] refactor watchpoint functionality (PR #159807)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 19 09:13:14 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 origin/main...HEAD lldb/test/API/commands/watchpoints/hello_watchlocation/TestWatchLocation.py lldb/test/API/commands/watchpoints/watchpoint_commands/TestWatchpointCommands.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- hello_watchlocation/TestWatchLocation.py 2025-09-19 16:04:07.000000 +0000
+++ hello_watchlocation/TestWatchLocation.py 2025-09-19 16:12:44.275354 +0000
@@ -72,11 +72,12 @@
substrs=["Watchpoint created", "size = 1", "type = w"],
)
# Get a hold of the watchpoint id just created, it is used later on to
# match the watchpoint id which is expected to be fired.
match = re.match(
- "Watchpoint created: Hardware Watchpoint (.*):", self.res.GetOutput().splitlines()[0]
+ "Watchpoint created: Hardware Watchpoint (.*):",
+ self.res.GetOutput().splitlines()[0],
)
if match:
expected_wp_id = int(match.group(1), 0)
else:
self.fail("Grokking watchpoint id faailed!")
``````````
</details>
https://github.com/llvm/llvm-project/pull/159807
More information about the lldb-commits
mailing list