Skip to content

Commit

Permalink
[lldb/Commands] Use the default scripting langauge for BP functions
Browse files Browse the repository at this point in the history
When a function is used as a breakpoint command, use to the debugger's
default scripting language, unless a language is explicitly specified.
  • Loading branch information
JDevlieghere committed Dec 22, 2019
1 parent c3d13d9 commit 1ff01cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lldb/source/Commands/CommandObjectBreakpointCommand.cpp
Expand Up @@ -375,7 +375,10 @@ are no syntax errors may indicate that a function was declared but never called.

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;
Expand Down

0 comments on commit 1ff01cf

Please sign in to comment.