summaryrefslogtreecommitdiff
path: root/lldb/source/Expression/REPL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Expression/REPL.cpp')
-rw-r--r--lldb/source/Expression/REPL.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Expression/REPL.cpp b/lldb/source/Expression/REPL.cpp
index 9cd6129eedd7..be41c60ebb5f 100644
--- a/lldb/source/Expression/REPL.cpp
+++ b/lldb/source/Expression/REPL.cpp
@@ -39,7 +39,11 @@ lldb::REPLSP REPL::Create(Status &err, lldb::LanguageType language,
lldb::REPLSP ret;
while (REPLCreateInstance create_instance =
- PluginManager::GetREPLCreateCallbackAtIndex(idx++)) {
+ PluginManager::GetREPLCreateCallbackAtIndex(idx)) {
+ LanguageSet supported_languages =
+ PluginManager::GetREPLSupportedLanguagesAtIndex(idx++);
+ if (!supported_languages[language])
+ continue;
ret = (*create_instance)(err, language, debugger, target, repl_options);
if (ret) {
break;