This commit is contained in:
parent
8f7b28d46c
commit
d0b0a416d0
@ -1773,7 +1773,7 @@ static const char *VmInstrToString(sxi32 nOp);
|
|||||||
/*
|
/*
|
||||||
* This routine is used to dump the debug stacktrace based on all active frames.
|
* This routine is used to dump the debug stacktrace based on all active frames.
|
||||||
*/
|
*/
|
||||||
PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace) {
|
PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace, sxbool bAllFrames) {
|
||||||
sxi32 iDepth = 0;
|
sxi32 iDepth = 0;
|
||||||
sxi32 rc = SXRET_OK;
|
sxi32 rc = SXRET_OK;
|
||||||
/* Initialize the container */
|
/* Initialize the container */
|
||||||
@ -1812,6 +1812,9 @@ PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!bAllFrames) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
/* Roll frame */
|
/* Roll frame */
|
||||||
pVm->pFrame = pVm->pFrame->pParent;
|
pVm->pFrame = pVm->pFrame->pParent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user