Skip to content

Commit 5c432fb

Browse files
committed
Added support for 'late' Lua global state registration
1 parent a05de2b commit 5c432fb

File tree

2 files changed

+209
-150
lines changed

2 files changed

+209
-150
lines changed

LuaDkmDebuggerComponent/BytecodeSchema.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ public class Luajit
614614
public static long tableSize = 0;
615615
public static long mrefSize = 0;
616616
public static long gcrefSize = 0;
617+
public static long luaStateSize = 0;
617618

618619
public static bool fullPointer = false;
619620

@@ -629,6 +630,7 @@ public static void LoadSchema(DkmInspectionSession inspectionSession, DkmThread
629630
tableSize = Helper.GetSize(inspectionSession, thread, frame, "GCtab", ref dummy);
630631
mrefSize = Helper.GetSize(inspectionSession, thread, frame, "MRef", ref dummy);
631632
gcrefSize = Helper.GetSize(inspectionSession, thread, frame, "GCRef", ref dummy);
633+
luaStateSize = Helper.GetSize(inspectionSession, thread, frame, "lua_State", ref dummy);
632634

633635
if (mrefSize == 8 && gcrefSize == 8)
634636
fullPointer = true;

0 commit comments

Comments
 (0)