[Lldb-commits] [lldb] [lldb] Pass `settings set` as a raw command (PR #194762)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 28 18:01:54 PDT 2026
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/194762
To prevent settings start with a dash to be interpreter as a command option, always pass them as raw values. An example of this is passing `platform.plugin.wasm.runtime-args` with the dotest.py `--settings` flag.
>From 89a665e8dc6ce92d0b9c1c275d2d21d6f5422cba Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Tue, 28 Apr 2026 17:59:21 -0700
Subject: [PATCH] [lldb] Pass `settings set` as a raw command
To prevent settings start with a dash to be interpreter as a command
option, always pass them as raw values. An example of this is passing
`platform.plugin.wasm.runtime-args` with the dotest.py `--settings`
flag.
---
lldb/packages/Python/lldbsuite/test/lldbtest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 3922509d5d4f9..f0eafba899c29 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -823,7 +823,7 @@ def setUpCommands(cls):
# Set any user-overridden settings.
for setting, value in configuration.settings:
- commands.append("setting set %s %s" % (setting, value))
+ commands.append("setting set -- %s %s" % (setting, value))
# Make sure that a sanitizer LLDB's environment doesn't get passed on.
if (
More information about the lldb-commits
mailing list