[all-commits] [llvm/llvm-project] 286132: [lldb/Lua] Implement a Simple Lua Script Interpret...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Dec 20 11:20:21 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2861324208e13846eb306f01b32448f94177cc3b
      https://github.com/llvm/llvm-project/commit/2861324208e13846eb306f01b32448f94177cc3b
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2019-12-20 (Fri, 20 Dec 2019)

  Changed paths:
    M lldb/cmake/modules/LLDBConfig.cmake
    M lldb/include/lldb/Core/IOHandler.h
    M lldb/source/Plugins/ScriptInterpreter/Lua/CMakeLists.txt
    A lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
    A lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
    M lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
    M lldb/test/CMakeLists.txt
    A lldb/test/Shell/ScriptInterpreter/Lua/lua.test
    M lldb/test/Shell/lit.cfg.py
    M lldb/test/Shell/lit.site.cfg.py.in
    M lldb/unittests/ScriptInterpreter/CMakeLists.txt
    A lldb/unittests/ScriptInterpreter/Lua/CMakeLists.txt
    A lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp
    A lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp

  Log Message:
  -----------
  [lldb/Lua] Implement a Simple Lua Script Interpreter Prototype

This implements a very elementary Lua script interpreter. It supports
running a single command as well as running interactively. It uses
editline if available. It's still missing a bunch of stuff though. Some
things that I intentionally ingored for now are that I/O isn't properly
hooked up (so every print goes to stdout) and the non-editline support
which is not handling a bunch of corner cases. The latter is a matter of
reusing existing code in the Python interpreter.

Discussion on the mailing list:
http://lists.llvm.org/pipermail/lldb-dev/2019-December/015812.html

Differential revision: https://reviews.llvm.org/D71234




More information about the All-commits mailing list