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 | |
| parent | 2791667d2e3fb8c1f0abaff93fd8caaabb2b00b9 (diff) | |
| download | bcm5719-llvm-bd5c8d167b7cce3290d755e29623d047c2ad8e3e.tar.gz bcm5719-llvm-bd5c8d167b7cce3290d755e29623d047c2ad8e3e.zip | |
[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')
| -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 b47cc372b4c..36d6b83d115 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); |

