llvm-project/lldb/test/Shell/ScriptInterpreter
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
..
Lua [lldb] Add -l/--language option to script command 2020-09-15 09:40:17 -07:00
None [lldb/ScriptInterpreter] Unify error message for command script import 2019-12-22 16:47:28 -08:00
Python [lldb] Add -l/--language option to script command 2020-09-15 09:40:17 -07:00