This commit is contained in:
parent
f89af70ab2
commit
ea7955b6ee
12
engine/vm.c
12
engine/vm.c
@ -1808,18 +1808,6 @@ PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace, sxbool bA
|
|||||||
pVm->pFrame = oFrame;
|
pVm->pFrame = oFrame;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* This routine is used to dump the peek frame from debug stacktrace.
|
|
||||||
*/
|
|
||||||
PH7_PRIVATE sxi32 VmExtractPeekDebugTrace(ph7_vm *pVm, VmDebugTrace *pDebug) {
|
|
||||||
SySet pTrace;
|
|
||||||
SySetInit(&pTrace, &pVm->sAllocator, sizeof(VmDebugTrace));
|
|
||||||
/* Populate debug stacktrace */
|
|
||||||
if(VmExtractDebugTrace(&(*pVm), &pTrace, FALSE) != SXRET_OK || SySetGetNextEntry(&pTrace, (void **)&pDebug) != SXRET_OK) {
|
|
||||||
return SXERR_MEM;
|
|
||||||
}
|
|
||||||
return SXRET_OK;
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* This routine is used to dump PH7 byte-code instructions to a human readable
|
* This routine is used to dump PH7 byte-code instructions to a human readable
|
||||||
* format.
|
* format.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user