diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-21 18:11:40 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-21 18:12:37 -0800 |
commit | 1ff01cfe3ea51f873ff91ed66e1b8157583c6aa1 (patch) | |
tree | 59d8b1b164aab3c6538823f11bfb3c6c61fee5b8 /lldb/source/Commands | |
parent | c3d13d9c563babb94c6d1f40d28d24f193cabe6f (diff) | |
download | bcm5719-llvm-1ff01cfe3ea51f873ff91ed66e1b8157583c6aa1.tar.gz bcm5719-llvm-1ff01cfe3ea51f873ff91ed66e1b8157583c6aa1.zip |
[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.
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpointCommand.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp index 73153cf6329..d62fe519eca 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; |