llvm-project/lldb/test/Shell/ScriptInterpreter/Lua
Jonas Devlieghere 127faae752 [lldb] Add -l/--language option to script command
Make it possible to run the script command with a different language
than currently selected.

  $ ./bin/lldb -l python
  (lldb) script -l lua
  >>> io.stdout:write("Hello, World!\n")
  Hello, World!

When passing the language option and a raw command, you need to separate
the flag from the script code with --.

  $ ./bin/lldb -l python
  (lldb) script -l lua -- io.stdout:write("Hello, World!\n")
  Hello, World!

Differential revision: https://reviews.llvm.org/D86996
2020-09-15 09:40:17 -07:00
..
Inputs [lldb/Lua] Support loading Lua modules 2020-01-10 10:22:30 -08:00
bindings.test [lldb/Test] Skip script interpreter tests reading from stdin for lldb-repro 2020-01-22 15:22:25 -08:00
breakpoint_callback.test [lldb/ScriptInterpreter] Fix stale/bogus error messages 2019-12-21 22:33:02 -08:00
command_script_import.test [lldb/Lua] Support loading Lua modules 2020-01-10 10:22:30 -08:00
convenience_variables.test [lldb/Test] Skip script interpreter tests reading from stdin for lldb-repro 2020-01-22 15:22:25 -08:00
independent_state.test [lldb/Lua] Make lldb.debugger et al available to Lua 2020-01-09 08:15:41 -08:00
io.test [lldb/Lua] Redirect Lua stdout/stderr to the CommandReturnObject 2020-06-25 09:55:46 -07:00
lit.local.cfg [lldb/Test] Use lit.local.cfg to mark whole directory as (un)supported. 2020-01-27 15:11:00 -08:00
lua-python.test [lldb] Add -l/--language option to script command 2020-09-15 09:40:17 -07:00
lua.test [lldb] Add -l/--language option to script command 2020-09-15 09:40:17 -07:00
nested_sessions.test [lldb/Lua] Make lldb.debugger et al available to Lua 2020-01-09 08:15:41 -08:00
persistent_state.test [Lldb/Lua] Persist Lua state across script interpreter calls. 2019-12-21 15:00:35 -08:00
quit.test [lldb/Lua] Recognize "quit" as a way to exit the script interpreter. 2020-06-22 09:27:12 -07:00
watchpoint_callback.test [lldb/ScriptInterpreter] Fix stale/bogus error messages 2019-12-21 22:33:02 -08:00