summaryrefslogtreecommitdiffstats
path: root/lldb/include
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-21 17:11:12 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-21 17:11:12 -0800
commitbbf70c046789f4403a9c02fc5558708ef19073cf (patch)
tree9d48a1cc734bc8dd51b2c5447d21362ab84fe1f3 /lldb/include
parent4164be7206d740b77b5a7b4b2f859ed122d08c10 (diff)
downloadbcm5719-llvm-bbf70c046789f4403a9c02fc5558708ef19073cf.tar.gz
bcm5719-llvm-bbf70c046789f4403a9c02fc5558708ef19073cf.zip
[lldb/Core] Support asking the debugger for a specific script interpreter
Rather than holding on to one script interpreter, it should be possible to request a script interpreter for a specific scripting language. The GetScriptInterpreter method now takes an optional scripting language argument. (NFC)
Diffstat (limited to 'lldb/include')
-rw-r--r--lldb/include/lldb/Core/Debugger.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/include/lldb/Core/Debugger.h b/lldb/include/lldb/Core/Debugger.h
index b2f696c2283..a8048427c8f 100644
--- a/lldb/include/lldb/Core/Debugger.h
+++ b/lldb/include/lldb/Core/Debugger.h
@@ -151,7 +151,9 @@ public:
return *m_command_interpreter_up;
}
- ScriptInterpreter *GetScriptInterpreter(bool can_create = true);
+ ScriptInterpreter *
+ GetScriptInterpreter(bool can_create = true,
+ llvm::Optional<lldb::ScriptLanguage> language = {});
lldb::ListenerSP GetListener() { return m_listener_sp; }
@@ -396,8 +398,9 @@ protected:
// source file cache.
std::unique_ptr<CommandInterpreter> m_command_interpreter_up;
- lldb::ScriptInterpreterSP m_script_interpreter_sp;
std::recursive_mutex m_script_interpreter_mutex;
+ std::array<lldb::ScriptInterpreterSP, lldb::eScriptLanguageUnknown>
+ m_script_interpreters;
IOHandlerStack m_input_reader_stack;
llvm::StringMap<std::weak_ptr<llvm::raw_ostream>> m_log_streams;
OpenPOWER on IntegriCloud