[Lldb-commits] [lldb] Fix a bug copying the stop hooks from the dummy target. (PR #129340)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 28 16:01:34 PST 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 273fca94d4c4896df15f967a1388b7c533b76062...02e908312518e85f1d637529c9f62e3dd9551035 lldb/test/API/commands/target/stop-hooks/TestStopHooks.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestStopHooks.py 2025-02-28 23:55:03.000000 +0000
+++ TestStopHooks.py 2025-03-01 00:01:09.460330 +0000
@@ -25,16 +25,16 @@
"""Test that stop hooks fire on step-out."""
self.step_out_test()
def test_stop_hooks_after_expr(self):
"""Test that a stop hook fires when hitting a breakpoint that
- runs an expression"""
+ runs an expression"""
self.after_expr_test()
def test_stop_hooks_before_and_after_creation(self):
"""Test that if we add a stop hook in the dummy target, we can
- they don't collide with ones set directly in the target."""
+ they don't collide with ones set directly in the target."""
self.before_and_after_target()
def step_out_test(self):
(target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
self, "Set a breakpoint here", self.main_source_file
@@ -101,7 +101,8 @@
self, "Set a breakpoint here", self.main_source_file
)
interp.HandleCommand("target stop-hook add -o 'thread backtrace'", result)
self.assertTrue(result.Succeeded(), "Set the target stop hook")
- self.expect("target stop-hook list", substrs=["expr g_var++", "thread backtrace"])
-
+ self.expect(
+ "target stop-hook list", substrs=["expr g_var++", "thread backtrace"]
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/129340
More information about the lldb-commits
mailing list