From f6bdd748514db59e7aa3f97e8d4209cf27f59e68 Mon Sep 17 00:00:00 2001 From: Alexander Wagner Date: Mon, 6 Mar 2023 10:59:49 +0100 Subject: [PATCH] pt/utils: Print Heap and Allocmap at exit --- pintool/utils.H | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pintool/utils.H b/pintool/utils.H index 014ba0bd..40711b93 100644 --- a/pintool/utils.H +++ b/pintool/utils.H @@ -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