[Lldb-commits] [lldb] Add new API in SBTarget for loading core from SBFile (PR #71769)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 8 21:22:46 PST 2023
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 21861991e760e7e845dc1be5b804c950543d699a..e7fb5814d7ef7ad28543978567db9f8305630f90 lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestLinuxCore.py 2023-11-09 02:11:05.000000 +0000
+++ TestLinuxCore.py 2023-11-09 05:22:39.189499 +0000
@@ -757,12 +757,12 @@
self.dbg.DeleteTarget(target)
def do_test_fd(self, filename, pid, region_count, thread_name):
file_object = open(filename + ".core", "r")
- fd=file_object.fileno()
- file = lldb.SBFile(fd, 'r', True)
+ fd = file_object.fileno()
+ file = lldb.SBFile(fd, "r", True)
target = self.dbg.CreateTarget(filename + ".out")
process = target.LoadCore(file)
self.check_all(process, pid, region_count, thread_name)
``````````
</details>
https://github.com/llvm/llvm-project/pull/71769
More information about the lldb-commits
mailing list