From 1ff01cfe3ea51f873ff91ed66e1b8157583c6aa1 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sat, 21 Dec 2019 18:11:40 -0800 Subject: [PATCH] [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. --- lldb/source/Commands/CommandObjectBreakpointCommand.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp index 73153cf..d62fe51 100644 --- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp +++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp @@ -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; -- 2.7.4