Fix build stack traceback in DebugLib #7 #16

Merged
Enyby merged 1 commits from patch-8 into master 2018-09-14 10:12:43 +00:00

View File

@@ -867,6 +867,10 @@ public class DebugLib extends TwoArgFunction {
if (reg == a) setreg = pc; /* jumped code can change 'a' */ if (reg == a) setreg = pc; /* jumped code can change 'a' */
break; 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: default:
if (Lua.testAMode(op) && reg == a) /* any instruction that set A */ if (Lua.testAMode(op) && reg == a) /* any instruction that set A */
setreg = pc; setreg = pc;