forked from OSchip/llvm-project
[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:
parent
c3d13d9c56
commit
1ff01cfe3e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue