[lldb/Commands] Use the default scripting langauge for BP functions

When a function is used as a breakpoint command, use to the debugger's
default scripting language, unless a language is explicitly specified.
This commit is contained in:
Jonas Devlieghere 2019-12-21 18:11:40 -08:00
parent c3d13d9c56
commit 1ff01cfe3e
1 changed files with 4 additions and 1 deletions

View File

@ -375,7 +375,10 @@ protected:
if (!m_func_options.GetName().empty()) {
m_options.m_use_one_liner = false;
m_options.m_use_script_language = true;
if (!m_options.m_use_script_language) {
m_options.m_script_language = GetDebugger().GetScriptLanguage();
m_options.m_use_script_language = true;
}
}
BreakpointIDList valid_bp_ids;