diff --git a/pintool/addrtrace.cpp b/pintool/addrtrace.cpp index 284fe015..f2bbb176 100644 --- a/pintool/addrtrace.cpp +++ b/pintool/addrtrace.cpp @@ -25,6 +25,7 @@ /***********************************************************************/ +#include "call-stack.H" #include "pin-macros.H" #include "pin.H" #include "utils.H" @@ -2043,6 +2044,9 @@ int main(int argc, char *argv[]) { PT_DEBUG(1, "vvar.baseaddr is " << hex << imgdata.baseaddr); PT_DEBUG(1, "vvar.endaddr is " << hex << imgdata.endaddr); + auto mngr = CALLSTACK::CallStackManager::get_instance(); + mngr->activate(); + PIN_AddThreadStartFunction(ThreadStart, 0); PIN_AddThreadFiniFunction(ThreadFini, 0); PIN_AddFiniFunction(Fini, 0);