Changeset View
Changeset View
Standalone View
Standalone View
lldb/trunk/source/Interpreter/CommandInterpreter.cpp
Show First 20 Lines • Show All 2,501 Lines • ▼ Show 20 Lines | |||||
ScriptInterpreter *CommandInterpreter::GetScriptInterpreter(bool can_create) { | ScriptInterpreter *CommandInterpreter::GetScriptInterpreter(bool can_create) { | ||||
std::lock_guard<std::recursive_mutex> locker(m_script_interpreter_mutex); | std::lock_guard<std::recursive_mutex> locker(m_script_interpreter_mutex); | ||||
if (!m_script_interpreter_sp) { | if (!m_script_interpreter_sp) { | ||||
if (!can_create) | if (!can_create) | ||||
return nullptr; | return nullptr; | ||||
lldb::ScriptLanguage script_lang = GetDebugger().GetScriptLanguage(); | lldb::ScriptLanguage script_lang = GetDebugger().GetScriptLanguage(); | ||||
m_script_interpreter_sp = | m_script_interpreter_sp = | ||||
PluginManager::GetScriptInterpreterForLanguage(script_lang, *this); | PluginManager::GetScriptInterpreterForLanguage(script_lang, m_debugger); | ||||
} | } | ||||
return m_script_interpreter_sp.get(); | return m_script_interpreter_sp.get(); | ||||
} | } | ||||
bool CommandInterpreter::GetSynchronous() { return m_synchronous_execution; } | bool CommandInterpreter::GetSynchronous() { return m_synchronous_execution; } | ||||
void CommandInterpreter::SetSynchronous(bool value) { | void CommandInterpreter::SetSynchronous(bool value) { | ||||
m_synchronous_execution = value; | m_synchronous_execution = value; | ||||
▲ Show 20 Lines • Show All 663 Lines • Show Last 20 Lines |