Fix build stack traceback in DebugLib #7 #11

Closed
Enyby wants to merge 3 commits from patch-4 into master
Showing only changes of commit ac112c7570 - Show all commits

View File

@@ -867,6 +867,10 @@ public class DebugLib extends TwoArgFunction {
if (reg == a) setreg = pc; /* jumped code can change 'a' */
break;
}
case Lua.OP_SETLIST: { // Lua.testAMode(Lua.OP_SETLIST) == false
if ( ((i>>14)&0x1ff) == 0 ) pc++; // if c == 0 then c stored in next op -> skip
break;
}
default:
if (Lua.testAMode(op) && reg == a) /* any instruction that set A */
setreg = pc;