[Lldb-commits] [lldb] [lldb] Fix "in function" detection in "thread until" (PR #123622)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 20 06:35:54 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 71d6287f5b1e65466de5fe5c093852fa7903cdbe...0a80b7a54b49de65758ab48acdb6d92f9b674d71 lldb/test/API/functionalities/thread/step_until/TestStepUntil.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestStepUntil.py 2025-01-20 14:03:14.000000 +0000
+++ TestStepUntil.py 2025-01-20 14:35:26.001442 +0000
@@ -101,13 +101,15 @@
@no_debug_info_test
def test_bad_line(self):
"""Test that we get an error if attempting to step outside the current
function"""
thread = self._common_setup(None, None)
- self.expect(f"thread until {self.in_foo}",
- substrs=["Until target outside of the current function"],
- error=True)
+ self.expect(
+ f"thread until {self.in_foo}",
+ substrs=["Until target outside of the current function"],
+ error=True,
+ )
@no_debug_info_test
@skipIf(oslist=lldbplatformutil.getDarwinOSTriples() + ["windows"])
@skipIf(archs=no_match(["x86_64", "aarch64"]))
def test_bad_line_discontinuous(self):
@@ -115,8 +117,10 @@
function -- and the function is discontinuous"""
self.build(dictionary=self._build_dict_for_discontinuity())
_, _, thread, _ = lldbutil.run_to_source_breakpoint(
self, "At the start", lldb.SBFileSpec(self.main_source)
)
- self.expect(f"thread until {self.in_foo}",
- substrs=["Until target outside of the current function"],
- error=True)
+ self.expect(
+ f"thread until {self.in_foo}",
+ substrs=["Until target outside of the current function"],
+ error=True,
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/123622
More information about the lldb-commits
mailing list