[lldb/Commands] Add command options for ScriptedProcess to ProcessLaunch
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 16 Feb 2021 09:12:41 +0000 (09:12 +0000)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Mon, 1 Mar 2021 20:13:31 +0000 (21:13 +0100)
commitd62a53aaf1d38a55d1affbd3a30d564a4e9d3171
tree63611feea3f5a1945e5247e0352cfdc5cf962e33
parent103ad3f90708eceddd9fea484ce82354e5a9d62d
[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>
12 files changed:
lldb/bindings/interface/SBLaunchInfo.i
lldb/include/lldb/API/SBLaunchInfo.h
lldb/include/lldb/API/SBStream.h
lldb/include/lldb/API/SBStructuredData.h
lldb/include/lldb/Host/ProcessLaunchInfo.h
lldb/source/API/SBLaunchInfo.cpp
lldb/source/API/SBTarget.cpp
lldb/source/Commands/CommandObjectPlatform.cpp
lldb/source/Commands/CommandObjectProcess.cpp
lldb/source/Commands/CommandOptionsProcessLaunch.cpp
lldb/source/Commands/CommandOptionsProcessLaunch.h
lldb/source/Host/common/ProcessLaunchInfo.cpp