[Lldb-commits] [lldb] [lldb-dap] Add `--no-lldbinit` as a CLI flag (PR #156131)

via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 29 18:01:22 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 origin/main...HEAD lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py lldb/test/API/tools/lldb-dap/launch/TestDAP_launch.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
--- packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py	2025-08-29 21:04:34.000000 +0000
+++ packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py	2025-08-30 01:00:57.245750 +0000
@@ -1494,12 +1494,15 @@
     ):
         self.process = None
         self.connection = None
         if executable is not None:
             process, connection = DebugAdapterServer.launch(
-                executable=executable, connection=connection, env=env, log_file=log_file,
-                additional_args=additional_args
+                executable=executable,
+                connection=connection,
+                env=env,
+                log_file=log_file,
+                additional_args=additional_args,
             )
             self.process = process
             self.connection = connection
 
         if connection is not None:
--- test/API/tools/lldb-dap/launch/TestDAP_launch.py	2025-08-29 21:04:34.000000 +0000
+++ test/API/tools/lldb-dap/launch/TestDAP_launch.py	2025-08-30 01:00:57.559371 +0000
@@ -597,12 +597,11 @@
                 f.write("settings set stop-disassembly-display never\n")
                 f.write("settings set target.x86-disassembly-flavor intel\n")
 
             # Test with --no-lldbinit flag (should NOT source .lldbinit)
             self.build_and_create_debug_adapter(
-                lldbDAPEnv={"HOME": temp_home},
-                additional_args=["--no-lldbinit"]
+                lldbDAPEnv={"HOME": temp_home}, additional_args=["--no-lldbinit"]
             )
             program = self.getBuildArtifact("a.out")
 
             # Use initCommands to check if .lldbinit was sourced
             initCommands = ["settings show stop-disassembly-display"]

``````````

</details>


https://github.com/llvm/llvm-project/pull/156131


More information about the lldb-commits mailing list