Skip to content

Commit

Permalink
pt/utils: Print Heap and Allocmap at exit
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Mar 6, 2023
1 parent 9b9841a commit f6bdd74
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pintool/utils.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ extern int DEBUG_LEVEL;
{ \
if (!(x)) { \
printProcMap(); \
printHeap(); \
printAllocmap(); \
MESSAGE("[pt-error] ", msg); \
ASSERT(false, "pintool failed."); \
} \
}
#define PT_ERROR(msg) PT_ASSERT(false, msg)

// TODO PT_ASSERT
// printheap();
// print_allocmap();
void printHeap();

void printAllocmap();

#endif

0 comments on commit f6bdd74

Please sign in to comment.