[Lldb-commits] [lldb] be494ad - [lldb/Lua] Fix typo: s/stdout/stderr/

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 23 14:19:12 PDT 2020


Author: Jonas Devlieghere
Date: 2020-06-23T14:19:03-07:00
New Revision: be494adb30ec76e1b6738b8bfc22040bfc31ce98

URL: https://github.com/llvm/llvm-project/commit/be494adb30ec76e1b6738b8bfc22040bfc31ce98
DIFF: https://github.com/llvm/llvm-project/commit/be494adb30ec76e1b6738b8bfc22040bfc31ce98.diff

LOG: [lldb/Lua] Fix typo: s/stdout/stderr/

This wasn't caught by the existing test, but will be covered by the
extended test that's part of D82412.

Added: 
    

Modified: 
    lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp b/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
index 4c3cde9a11ec..acd6128d84c5 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
@@ -75,7 +75,7 @@ llvm::Error Lua::ChangeIO(FILE *out, FILE *err) {
                                                llvm::inconvertibleErrorCode());
   }
 
-  lua_getfield(m_lua_state, -1, "stdout");
+  lua_getfield(m_lua_state, -1, "stderr");
   if (luaL_Stream *s = static_cast<luaL_Stream *>(
           luaL_testudata(m_lua_state, -1, LUA_FILEHANDLE))) {
     s->f = out;


        


More information about the lldb-commits mailing list