Skip to content

Commit c7b328f

Browse files
committed
Fixed some schema values not being updated the Lua library version changes
1 parent 27b7ecc commit c7b328f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LuaDkmDebuggerComponent/BytecodeSchema.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ public static void LoadSchema(DkmInspectionSession inspectionSession, DkmThread
341341
// Try to guess if we have Lua 5.4 using new field
342342
if (!Helper.ReadOptional(inspectionSession, thread, frame, "CallInfo", "u.l.trap", "used to detect 5.4", ref optional).HasValue)
343343
stackBaseAddress_5_123 = Helper.Read(inspectionSession, thread, frame, "CallInfo", new[] { "u.l.base", "base" }, ref available, ref success, ref failure);
344+
else
345+
stackBaseAddress_5_123 = null;
344346

345347
savedInstructionPointerAddress = Helper.Read(inspectionSession, thread, frame, "CallInfo", new[] { "u.l.savedpc", "savedpc" }, ref available, ref success, ref failure);
346348
tailCallCount_5_1 = Helper.ReadOptional(inspectionSession, thread, frame, "CallInfo", "tailcalls", "used in 5.1", ref optional);
@@ -384,6 +386,8 @@ public static void LoadSchema(DkmInspectionSession inspectionSession, DkmThread
384386

385387
if (!keyDataTypeAddress_5_4.HasValue || !keyDataValueAddress_5_4.HasValue)
386388
keyDataAddress_5_123 = Helper.Read(inspectionSession, thread, frame, "Node", "i_key", ref available, ref success, ref failure);
389+
else
390+
keyDataAddress_5_123 = null;
387391

388392
if (Log.instance != null)
389393
Log.instance.Debug($"LuaNodeData schema {(available ? "available" : "not available")} with {success} successes and {failure} failures and {optional} optional");

0 commit comments

Comments
 (0)