Skip to content

[lldb] Document <run-args> behavior in process launch help #128215

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
merged 1 commit into from
Feb 22, 2025

Conversation

JDevlieghere
Copy link
Member

Update the help for process launch to say that with no arguments, it will reuse the run-args from target.run-args.

rdar://139768013

Update the help for `process launch` to say that with no arguments, it
will reuse the run-args from target.run-args.

rdar://139768013
@llvmbot
Copy link
Member

llvmbot commented Feb 21, 2025

@llvm/pr-subscribers-lldb

Author: Jonas Devlieghere (JDevlieghere)

Changes

Update the help for process launch to say that with no arguments, it will reuse the run-args from target.run-args.

rdar://139768013


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

1 Files Affected:

  • (modified) lldb/source/Commands/CommandObjectProcess.cpp (+3-2)
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 7444e46aa729e..654dfa83ea444 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -118,8 +118,9 @@ class CommandObjectProcessLaunch : public CommandObjectProcessLaunchOrAttach {
   CommandObjectProcessLaunch(CommandInterpreter &interpreter)
       : CommandObjectProcessLaunchOrAttach(
             interpreter, "process launch",
-            "Launch the executable in the debugger.", nullptr,
-            eCommandRequiresTarget, "restart"),
+            "Launch the executable in the debugger. If no run-args are "
+            "specified, the arguments from target.run-args are used.",
+            nullptr, eCommandRequiresTarget, "restart"),
 
         m_class_options("scripted process", true, 'C', 'k', 'v', 0) {
     m_all_options.Append(&m_options);

Copy link
Collaborator

@jimingham jimingham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct & useful.

@JDevlieghere JDevlieghere merged commit ae28a37 into llvm:main Feb 22, 2025
12 checks passed
JDevlieghere added a commit to swiftlang/llvm-project that referenced this pull request Jun 20, 2025
@JDevlieghere JDevlieghere deleted the rdar139768013 branch June 20, 2025 18:08
JDevlieghere added a commit to swiftlang/llvm-project that referenced this pull request Jun 21, 2025
…-ae28a375d0d7

[lldb] Document <run-args> behavior in process launch help (llvm#128215)
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.

4 participants