Skip to content

[lldb] Fix --persistent-result description #68128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kastiglione
Copy link
Contributor

@kastiglione kastiglione commented Oct 3, 2023

The default is not static, it depends on context. For expression, the default is true, but for dwim-print, the default is false.

rdar://116320377

The default is not static, it depends on context. For `expression`, the default is true,
but for `dwim-print`, the default is false.
@llvmbot
Copy link
Member

llvmbot commented Oct 3, 2023

@llvm/pr-subscribers-lldb

Changes

The default is not static, it depends on context. For expression, the default is true, but for dwim-print, the default is false.

rdar://116320377


Full diff: https://github.com/llvm/llvm-project/pull/68128.diff

1 Files Affected:

  • (modified) lldb/source/Commands/Options.td (+1-1)
diff --git a/lldb/source/Commands/Options.td b/lldb/source/Commands/Options.td
index 04830b8b990efae..cfdeaabfa007743 100644
--- a/lldb/source/Commands/Options.td
+++ b/lldb/source/Commands/Options.td
@@ -390,7 +390,7 @@ let Command = "expression" in {
     Arg<"Boolean">,
     Desc<"Persist expression result in a variable for subsequent use. "
     "Expression results will be labeled with $-prefixed variables, e.g. $0, "
-    "$1, etc. Defaults to true.">;
+    "$1, etc.">;
 }
 
 let Command = "frame diag" in {

@kastiglione kastiglione merged commit 40653b6 into llvm:main Oct 3, 2023
@kastiglione kastiglione deleted the lldb-Fix-persistent-result-description branch October 3, 2023 23:21
swift-ci pushed a commit to swiftlang/llvm-project that referenced this pull request Oct 5, 2023
From llvm@40653b6

% git show 40653b6
commit 40653b6
Author: Dave Lee <[email protected]>
Date:   Tue Oct 3 16:21:52 2023 -0700

    [lldb] Fix --persistent-result description (llvm#68128)

    The default is not static, it depends on context. For `expression`, the
    default is true, but for `dwim-print`, the default is false.

    rdar://116320377

diff --git a/lldb/source/Commands/Options.td b/lldb/source/Commands/Options.td
index 04830b8..cfdeaab 100644
--- a/lldb/source/Commands/Options.td
+++ b/lldb/source/Commands/Options.td
@@ -390,7 +390,7 @@ let Command = "expression" in {
     Arg<"Boolean">,
     Desc<"Persist expression result in a variable for subsequent use. "
     "Expression results will be labeled with $-prefixed variables, e.g. $0, "
-    "$1, etc. Defaults to true.">;
+    "$1, etc.">;
 }

 let Command = "frame diag" in {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants