diff options
author | Andy Yankovsky <werat@google.com> | 2021-08-31 13:36:53 +0200 |
---|---|---|
committer | Andy Yankovsky <werat@google.com> | 2021-08-31 13:36:53 +0200 |
commit | 1f986f60573c6f4355c2d8a5c7ddcb2d32dfd43c (patch) | |
tree | f964004cd13528ca49f07391e23dfa4057893d57 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 7ec7272b8056c70f38081aa55ccfb5e8aacf0c53 (diff) | |
download | llvm-1f986f60573c6f4355c2d8a5c7ddcb2d32dfd43c.zip llvm-1f986f60573c6f4355c2d8a5c7ddcb2d32dfd43c.tar.gz llvm-1f986f60573c6f4355c2d8a5c7ddcb2d32dfd43c.tar.bz2 |
Revert "[lldb] Add minidump save-core functionality to ELF object files"
This reverts commit aafa05e03d629cc6605718c54575256d9d683659.
Broke builder on aarch64 --
https://lab.llvm.org/buildbot/#/builders/96/builds/10926
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index b3e2f6a..bb6220a 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -1180,13 +1180,12 @@ static constexpr OptionEnumValues SaveCoreStyles() { class CommandObjectProcessSaveCore : public CommandObjectParsed { public: CommandObjectProcessSaveCore(CommandInterpreter &interpreter) - : CommandObjectParsed( - interpreter, "process save-core", - "Save the current process as a core file using an " - "appropriate file type.", - "process save-core [-s corefile-style -p plugin-name] FILE", - eCommandRequiresProcess | eCommandTryTargetAPILock | - eCommandProcessMustBeLaunched) {} + : CommandObjectParsed(interpreter, "process save-core", + "Save the current process as a core file using an " + "appropriate file type.", + "process save-core [-s corefile-style] FILE", + eCommandRequiresProcess | eCommandTryTargetAPILock | + eCommandProcessMustBeLaunched) {} ~CommandObjectProcessSaveCore() override = default; @@ -1209,9 +1208,6 @@ public: Status error; switch (short_option) { - case 'p': - m_requested_plugin_name.SetString(option_arg); - break; case 's': m_requested_save_core_style = (lldb::SaveCoreStyle)OptionArgParser::ToOptionEnum( @@ -1227,12 +1223,10 @@ public: void OptionParsingStarting(ExecutionContext *execution_context) override { m_requested_save_core_style = eSaveCoreUnspecified; - m_requested_plugin_name.Clear(); } // Instance variables to hold the values for command options. SaveCoreStyle m_requested_save_core_style; - ConstString m_requested_plugin_name; }; protected: @@ -1243,8 +1237,7 @@ protected: FileSpec output_file(command.GetArgumentAtIndex(0)); SaveCoreStyle corefile_style = m_options.m_requested_save_core_style; Status error = - PluginManager::SaveCore(process_sp, output_file, corefile_style, - m_options.m_requested_plugin_name); + PluginManager::SaveCore(process_sp, output_file, corefile_style); if (error.Success()) { if (corefile_style == SaveCoreStyle::eSaveCoreDirtyOnly || corefile_style == SaveCoreStyle::eSaveCoreStackOnly) { |