Exemple #1
0
static void callbackSnapshot(uint64 mem, uint32 writeSize)
{
    if (!analysisTrigger.getState())
        /* Analysis locked */
        return;

    /* If the snapshot is not enable we don't save the memory */
    if (ap.isSnapshotLocked())
        return;

    uint32 i = 0;
    for (; i < writeSize ; i++)
        ap.addSnapshotModification(mem+i, *(reinterpret_cast<uint8*>(mem+i)));
}