diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-22 16:46:01 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-22 16:47:28 -0800 |
commit | bd5c8d167b7cce3290d755e29623d047c2ad8e3e (patch) | |
tree | 5886aa1c8e1240b77fc6dbcbfcb60ece5b874c4c /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 2791667d2e3fb8c1f0abaff93fd8caaabb2b00b9 (diff) | |
download | llvm-bd5c8d167b7cce3290d755e29623d047c2ad8e3e.zip llvm-bd5c8d167b7cce3290d755e29623d047c2ad8e3e.tar.gz llvm-bd5c8d167b7cce3290d755e29623d047c2ad8e3e.tar.bz2 |
[lldb/ScriptInterpreter] Unify error message for command script import
Rather than checking for Python explicitly, let the script interpreter
handle things and print an error if the functionality is not supported.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index b47cc37..36d6b83 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1426,13 +1426,6 @@ protected: }; bool DoExecute(Args &command, CommandReturnObject &result) override { - if (GetDebugger().GetScriptLanguage() != lldb::eScriptLanguagePython) { - result.AppendError("only scripting language supported for module " - "importing is currently Python"); - result.SetStatus(eReturnStatusFailed); - return false; - } - if (command.empty()) { result.AppendError("command script import needs one or more arguments"); result.SetStatus(eReturnStatusFailed); |