Use debug trace only if VM is really executing some code.
所有检测均成功
The build was successful.

这个提交包含在:
2018-09-05 13:16:57 +02:00
父节点 765d2cf3eb
当前提交 d58249cb3f

查看文件

@@ -1920,7 +1920,7 @@ PH7_PRIVATE sxi32 PH7_VmThrowError(
sxu32 nLine; sxu32 nLine;
SyString sFileName; SyString sFileName;
SyString *pFile; SyString *pFile;
if((VmExtractDebugTrace(&(*pVm), &pDebug) == SXRET_OK) && (SySetUsed(&pDebug) > 0)) { if((pVm->nMagic == PH7_VM_EXEC) && (VmExtractDebugTrace(&(*pVm), &pDebug) == SXRET_OK) && (SySetUsed(&pDebug) > 0)) {
/* Extract file name and line number from debug trace */ /* Extract file name and line number from debug trace */
SySetGetNextEntry(&pDebug, (void **)&pTrace); SySetGetNextEntry(&pDebug, (void **)&pTrace);
pFile = pTrace->pFile; pFile = pTrace->pFile;