[lldb/Lua] Use the debugger's output and error file for Lua's I/O library.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 23 Jun 2020 16:04:52 +0000 (09:04 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 23 Jun 2020 16:05:51 +0000 (09:05 -0700)
commitfa1b4a96a0110c87cdd83eb4ea3e9a0d002c3c3d
tree2732d4ee1d06f0e0f4d3752cb4a26d35a2679e0a
parent45fa936855f62dc7864028a3f2fa7a9693b9fceb
[lldb/Lua] Use the debugger's output and error file for Lua's I/O library.

Add support for changing the stdout and stderr file in Lua's I/O library
and hook it up with the debugger's output and error file respectively
for the interactive Lua interpreter.

https://reviews.llvm.org/D82273
lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
lldb/test/Shell/ScriptInterpreter/Lua/io.test [new file with mode: 0644]