Merge pull request #16 from Enyby/patch-8

Fix build stack traceback in DebugLib

Fixes #7
This commit was merged in pull request #16.
This commit is contained in:
Benjamin P. Jung
2018-09-14 12:12:42 +02:00
committed by GitHub

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;