[Lldb-commits] [lldb] Branch island debug (PR #139166)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 8 15:00:17 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/test/API/macosx/branch-islands/TestBranchIslands.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestBranchIslands.py 2025-05-08 21:41:17.000000 +0000
+++ TestBranchIslands.py 2025-05-08 21:59:48.164599 +0000
@@ -39,23 +39,27 @@
# figure out what went wrong...
if stop_frame.name.find("foo") == -1:
stream = lldb.SBStream()
print("Branch island symbols: ")
syms[0].GetDescription(stream)
- for i in range (0,6):
+ for i in range(0, 6):
for sep in ["", "."]:
- syms = target.FindSymbols(f"foo.island{sep}{i}", lldb.eSymbolTypeCode)
+ syms = target.FindSymbols(
+ f"foo.island{sep}{i}", lldb.eSymbolTypeCode
+ )
if len(syms) > 0:
stream.Print("\n")
syms[0].GetDescription(stream)
-
+
print(stream.GetData())
print(f"Start backtrace:")
print(trace_before)
print(f"\n'main' disassembly:\n{lldbutil.disassemble(target, func_before)}")
print("\nEnd backtrace:\n")
lldbutil.print_stacktrace(thread)
- print(f"\nStop disassembly:\n {lldbutil.disassemble(target, stop_frame.function)}")
-
+ print(
+ f"\nStop disassembly:\n {lldbutil.disassemble(target, stop_frame.function)}"
+ )
+
self.assertIn("foo", stop_frame.name, "Stepped into foo")
var = stop_frame.FindVariable("a_variable_in_foo")
self.assertTrue(var.IsValid(), "Found the variable in foo")
``````````
</details>
https://github.com/llvm/llvm-project/pull/139166
More information about the lldb-commits
mailing list