X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=snapshot-interface.cc;h=47fafa5b0641f8865cb279c47f08531e9cbfd4f1;hb=5d87d23f622d396fd2e1c94d61f901429c5f35ac;hp=84d9dbc015f0d6d593f4e72da807042c8bc3e373;hpb=37c87f91496ff3e713003c21692c63b8e87d81fb;p=model-checker.git diff --git a/snapshot-interface.cc b/snapshot-interface.cc index 84d9dbc..47fafa5 100644 --- a/snapshot-interface.cc +++ b/snapshot-interface.cc @@ -63,8 +63,6 @@ static void SnapshotGlobalSegments(){ size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE; if (len != 0) addMemoryRegionToSnapShot(begin, len); - DEBUG("%s\n", buf); - DEBUG("%45s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p); } } pclose(map); @@ -95,7 +93,7 @@ static void SnapshotGlobalSegments(){ size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE; if (len != 0) addMemoryRegionToSnapShot(begin, len); - DEBUG("%45s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p); + DEBUG("%55s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p); } } fclose(map); @@ -125,14 +123,14 @@ int SnapshotStack::backTrackBeforeStep(int seqindex) { return stack->index; } struct stackEntry *tmp=stack; - MYFREE(tmp); stack=stack->next; + model_free(tmp); } } /** This method takes a snapshot at the given sequence number. */ void SnapshotStack::snapshotStep(int seqindex) { - struct stackEntry *tmp=(struct stackEntry *)MYMALLOC(sizeof(struct stackEntry)); + struct stackEntry *tmp=(struct stackEntry *)model_malloc(sizeof(struct stackEntry)); tmp->next=stack; tmp->index=seqindex; tmp->snapshotid=takeSnapshot();