aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-22 16:46:01 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-22 16:47:28 -0800
commitbd5c8d167b7cce3290d755e29623d047c2ad8e3e (patch)
tree5886aa1c8e1240b77fc6dbcbfcb60ece5b874c4c /lldb/source/Commands/CommandObjectCommands.cpp
parent2791667d2e3fb8c1f0abaff93fd8caaabb2b00b9 (diff)
downloadllvm-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.cpp7
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);