Take last instruction being executed, not necessarily OP_CALL.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-09-05 19:45:38 +02:00
parent 6387026e15
commit ea4daa9335
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions

View File

@ -1751,7 +1751,7 @@ PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace) {
aTrace.pArg = &pVm->pFrame->sArg;
for(sxi32 i = (SySetUsed(aByteCode) - 1); i >= 0 ; i--) {
VmInstr *cInstr = (VmInstr *)SySetAt(aByteCode, i);
if(cInstr->iOp == PH7_OP_CALL && cInstr->bExec == TRUE) {
if(cInstr->bExec == TRUE) {
/* Extract file name & line */
aTrace.pFile = cInstr->pFile;
aTrace.nLine = cInstr->iLine;