summaryrefslogtreecommitdiffstats
path: root/lldb/include
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/include
parent2791667d2e3fb8c1f0abaff93fd8caaabb2b00b9 (diff)
downloadbcm5719-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/include')
-rw-r--r--lldb/include/lldb/Interpreter/ScriptInterpreter.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/include/lldb/Interpreter/ScriptInterpreter.h b/lldb/include/lldb/Interpreter/ScriptInterpreter.h
index b32962b8035..4b866949514 100644
--- a/lldb/include/lldb/Interpreter/ScriptInterpreter.h
+++ b/lldb/include/lldb/Interpreter/ScriptInterpreter.h
@@ -459,10 +459,7 @@ public:
virtual bool
LoadScriptingModule(const char *filename, bool can_reload, bool init_session,
lldb_private::Status &error,
- StructuredData::ObjectSP *module_sp = nullptr) {
- error.SetErrorString("loading unimplemented");
- return false;
- }
+ StructuredData::ObjectSP *module_sp = nullptr);
virtual bool IsReservedWord(const char *word) { return false; }
OpenPOWER on IntegriCloud