1. [lldb/Core] Support asking the debugger for a specific script (details)
  2. [lldb/Commands] Fix bogus enum entry and add Lua (NFC) (details)
  3. [lldb/Commands] Honor the scripting language passed (details)
  4. [NFC] Separate getLastArgIntValue to Basic (details)
Commit bbf70c046789f4403a9c02fc5558708ef19073cf by Jonas Devlieghere
[lldb/Core] Support asking the debugger for a specific script
Rather than holding on to one script interpreter, it should be possible
to request a script interpreter for a specific scripting language. The
GetScriptInterpreter method now takes an optional scripting language
The file was modifiedlldb/include/lldb/Core/Debugger.h
The file was modifiedlldb/source/Core/Debugger.cpp
Commit 8983d69144d14d6477c377bb91e9c7224e32f753 by Jonas Devlieghere
[lldb/Commands] Fix bogus enum entry and add Lua (NFC)
Fixes a bogus enum value for the scripting language options, adds an
entry for Lua and refactored the code to use an exhaustive switch.
The file was modifiedlldb/source/Commands/CommandObjectBreakpointCommand.cpp
Commit 5e32eb1c7a816a1902f6229f7a1f9da92678f451 by Jonas Devlieghere
[lldb/Commands] Honor the scripting language passed
This ensures that breakpoint command honors the scripting language
passed with `-s`. Currently the argument ignores the actual language and
only uses it to differentiate between lldb and script commands.
The file was modifiedlldb/source/Commands/CommandObjectBreakpointCommand.cpp
The file was addedlldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test
Commit 7376d9eb38914ff7b6b5f5901d32743f0ee76b5a by Yaxun.Liu
[NFC] Separate getLastArgIntValue to Basic
getLastArgIntValue is a useful utility function to get command line
argument as an integer. Currently it is in Frontend so that it can only
be used by clang -cc1. Move it to basic so that it can also be used by
clang driver.
Differential Revision:
The file was addedclang/lib/Basic/OptionUtils.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was addedclang/include/clang/Basic/OptionUtils.h
The file was modifiedclang/include/clang/Frontend/Utils.h
The file was modifiedclang/lib/Basic/CMakeLists.txt