[Lldb-commits] [lldb] [LLDB] Extract process arguments from core dump for Linux (PR #185338)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Mar 8 19:44:54 PDT 2026
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/functionalities/postmortem/elf-core/TestLinuxCore.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
--- TestLinuxCore.py 2026-03-09 02:25:27.000000 +0000
+++ TestLinuxCore.py 2026-03-09 02:44:21.786435 +0000
@@ -60,14 +60,19 @@
@skipIfLLVMTargetMissing("X86")
def test_x86_64_core_generated(self):
"""Test that lldb can read the argument used for the process from an x86_64 linux core file."""
result = lldb.SBCommandReturnObject()
- self.dbg.GetCommandInterpreter().HandleCommand("target create linux-x86_64.out --core linux-x86_64.core", result)
+ self.dbg.GetCommandInterpreter().HandleCommand(
+ "target create linux-x86_64.out --core linux-x86_64.core", result
+ )
out = result.GetOutput()
- self.assertIn("Core was generated by `/test/test/test/test/test/test",
- out, "Command line arg from pr_psargs should be shown.")
+ self.assertIn(
+ "Core was generated by `/test/test/test/test/test/test",
+ out,
+ "Command line arg from pr_psargs should be shown.",
+ )
@skipIfLLVMTargetMissing("SystemZ")
def test_s390x(self):
"""Test that lldb can read the process information from an s390x linux core file."""
self.do_test("linux-s390x", self._s390x_pid, self._s390x_regions, "a.out")
``````````
</details>
https://github.com/llvm/llvm-project/pull/185338
More information about the lldb-commits
mailing list