diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-02-16 09:12:41 +0000 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-03-01 21:13:31 +0100 |
commit | d62a53aaf1d38a55d1affbd3a30d564a4e9d3171 (patch) | |
tree | 63611feea3f5a1945e5247e0352cfdc5cf962e33 /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | 103ad3f90708eceddd9fea484ce82354e5a9d62d (diff) | |
download | llvm-d62a53aaf1d38a55d1affbd3a30d564a4e9d3171.zip llvm-d62a53aaf1d38a55d1affbd3a30d564a4e9d3171.tar.gz llvm-d62a53aaf1d38a55d1affbd3a30d564a4e9d3171.tar.bz2 |
[lldb/Commands] Add command options for ScriptedProcess to ProcessLaunch
This patch adds a new command options to the CommandObjectProcessLaunch
for scripted processes.
Among the options, the user need to specify the class name managing the
scripted process. The user can also use a key-value dictionary holding
arbitrary data that will be passed to the managing class.
This patch also adds getters and setters to `SBLaunchInfo` for the
class name managing the scripted process and the dictionary.
rdar://65508855
Differential Review: https://reviews.llvm.org/D95710
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index f306da3..d0c58ac 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -1009,11 +1009,14 @@ public: "Launch a new process on a remote platform.", "platform process launch program", eCommandRequiresTarget | eCommandTryTargetAPILock), - m_options() {} + m_options(), m_all_options() { + m_all_options.Append(&m_options); + m_all_options.Finalize(); + } ~CommandObjectPlatformProcessLaunch() override = default; - Options *GetOptions() override { return &m_options; } + Options *GetOptions() override { return &m_all_options; } protected: bool DoExecute(Args &args, CommandReturnObject &result) override { @@ -1085,6 +1088,7 @@ protected: } CommandOptionsProcessLaunch m_options; + OptionGroupOptions m_all_options; }; // "platform process list" |