[all-commits] [llvm/llvm-project] ca1757: [LLDB-lua] modify Lua's 'print' to respect 'io.std...
Pedro Tammela via All-commits
all-commits at lists.llvm.org
Thu Nov 5 13:32:35 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ca17571051d4e0a63e702371984dbd3671261f79
https://github.com/llvm/llvm-project/commit/ca17571051d4e0a63e702371984dbd3671261f79
Author: Pedro Tammela <pctammela at gmail.com>
Date: 2020-11-05 (Thu, 05 Nov 2020)
Changed paths:
M lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
M lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
A lldb/test/Shell/ScriptInterpreter/Lua/print.test
Log Message:
-----------
[LLDB-lua] modify Lua's 'print' to respect 'io.stdout'
This patch changes the implementation of Lua's `print()` function to
respect `io.stdout`.
The original implementation uses `lua_writestring()` internally, which is
hardcoded to `stdout`.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D90787
More information about the All-commits
mailing list