mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user