diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-03-01 23:23:27 +0000 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-03-01 23:23:27 +0000 |
commit | 36254f1a0f32e8a1db353efbe1f8c3a290e5b084 (patch) | |
tree | 642cb15cc1fc102063f2bccdcd9f670135ee4500 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | a9e68db9736080373d73606d89a270e38d7f1273 (diff) | |
download | llvm-36254f1a0f32e8a1db353efbe1f8c3a290e5b084.zip llvm-36254f1a0f32e8a1db353efbe1f8c3a290e5b084.tar.gz llvm-36254f1a0f32e8a1db353efbe1f8c3a290e5b084.tar.bz2 |
[lldb] Revert ScriptedProcess patches
This patch reverts the following commits:
- 5a9c34918bb1526b7e8c29aa5e4fb8d8e27e27b4
- 46796762afe76496ec4dd900f64d0cf4cdc30e99
- 2cff3dec1171188ce04ab1a4373cc1885ab97be1
- 182f0d1a34419445bb19d67581d6ac1afc98b7fa
- d62a53aaf1d38a55d1affbd3a30d564a4e9d3171
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 06d2f54..c21c499 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -17,7 +17,6 @@ #include "lldb/Interpreter/CommandInterpreter.h" #include "lldb/Interpreter/CommandReturnObject.h" #include "lldb/Interpreter/OptionArgParser.h" -#include "lldb/Interpreter/OptionGroupPythonClassWithDict.h" #include "lldb/Interpreter/Options.h" #include "lldb/Target/Platform.h" #include "lldb/Target/Process.h" @@ -109,12 +108,7 @@ public: interpreter, "process launch", "Launch the executable in the debugger.", nullptr, eCommandRequiresTarget, "restart"), - m_options(), m_class_options("scripted process"), m_all_options() { - m_all_options.Append(&m_options); - m_all_options.Append(&m_class_options, LLDB_OPT_SET_1 | LLDB_OPT_SET_2, - LLDB_OPT_SET_1); - m_all_options.Finalize(); - + m_options() { CommandArgumentEntry arg; CommandArgumentData run_args_arg; @@ -141,7 +135,7 @@ public: request, nullptr); } - Options *GetOptions() override { return &m_all_options; } + Options *GetOptions() override { return &m_options; } const char *GetRepeatCommand(Args ¤t_command_args, uint32_t index) override { @@ -186,15 +180,6 @@ protected: disable_aslr = target->GetDisableASLR(); } - if (!m_class_options.GetName().empty()) { - m_options.launch_info.SetProcessPluginName("ScriptedProcess"); - m_options.launch_info.SetScriptedProcessClassName( - m_class_options.GetName()); - m_options.launch_info.SetScriptedProcessDictionarySP( - m_class_options.GetStructuredData()); - target->SetProcessLaunchInfo(m_options.launch_info); - } - if (disable_aslr) m_options.launch_info.GetFlags().Set(eLaunchFlagDisableASLR); else @@ -268,8 +253,6 @@ protected: } CommandOptionsProcessLaunch m_options; - OptionGroupPythonClassWithDict m_class_options; - OptionGroupOptions m_all_options; }; #define LLDB_OPTIONS_process_attach |