From: Brian Norris Date: Fri, 19 Apr 2013 22:20:18 +0000 (-0700) Subject: snapshot: debugging - show the snapshot regions that are added X-Git-Tag: oopsla2013~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?p=model-checker.git;a=commitdiff_plain;h=923b6a3cc2e14f3bf6fc660d760abb5686b97914 snapshot: debugging - show the snapshot regions that are added --- diff --git a/snapshot.cc b/snapshot.cc index 56bdeb1..66faacd 100644 --- a/snapshot.cc +++ b/snapshot.cc @@ -190,6 +190,9 @@ static void mprot_add_to_snapshot(void *addr, unsigned int numPages) exit(EXIT_FAILURE); } + DEBUG("snapshot region %p-%p (%u page%s)\n", + addr, (char *)addr + numPages * PAGESIZE, numPages, + numPages > 1 ? "s" : ""); mprot_snap->regionsToSnapShot[memoryregion].basePtr = addr; mprot_snap->regionsToSnapShot[memoryregion].sizeInPages = numPages; }