[Lldb-commits] [lldb] 6ed829b - [lldb] Restore the old behavior in lua-typemaps.swig (#169103)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 21 14:13:29 PST 2025
Author: Jonas Devlieghere
Date: 2025-11-21T22:13:24Z
New Revision: 6ed829baa3861adbe053c16878fbae74b9c1e9d6
URL: https://github.com/llvm/llvm-project/commit/6ed829baa3861adbe053c16878fbae74b9c1e9d6
DIFF: https://github.com/llvm/llvm-project/commit/6ed829baa3861adbe053c16878fbae74b9c1e9d6.diff
LOG: [lldb] Restore the old behavior in lua-typemaps.swig (#169103)
Restore the original behavior (i.e. before #167764), which uses
eOpenOptionWriteOnly, not eOpenOptionReadWrite. Fixes TestLuaAPI.py.
Added:
Modified:
lldb/bindings/lua/lua-typemaps.swig
Removed:
################################################################################
diff --git a/lldb/bindings/lua/lua-typemaps.swig b/lldb/bindings/lua/lua-typemaps.swig
index a4a77b1a214c9..51a92473c009a 100644
--- a/lldb/bindings/lua/lua-typemaps.swig
+++ b/lldb/bindings/lua/lua-typemaps.swig
@@ -252,7 +252,7 @@ LLDB_NUMBER_TYPEMAP(enum SWIGTYPE);
luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, $input, LUA_FILEHANDLE);
lldb::FileSP file_sp;
file_sp = std::make_shared<lldb_private::NativeFile>(
- p->f, lldb_private::NativeFile::eOpenOptionReadWrite, false);
+ p->f, lldb_private::NativeFile::eOpenOptionWriteOnly, false);
if (!file_sp->IsValid())
return luaL_error(L, "Invalid file");
$1 = file_sp;
More information about the lldb-commits
mailing list