Exemple #1
0
static void callbackAfter(CONTEXT *ctx, THREADID threadId)
{
    Inst *inst;

    if (!analysisTrigger.getState())
        /* Analysis locked */
        return;

    /* Update the current context handler */
    ap.updateCurrentCtxH(new PINContextHandler(ctx, threadId));

    /* Get the last instruction */
    inst = ap.getLastInstruction();

    /* Update statistics */
    ap.incNumberOfBranchesTaken(inst->isBranch());

    /* Python callback after instruction processing */
    processingPyConf.callbackAfter(inst, &ap);
}