I am working a instrumentation tool based on gcc. I insert some intrumentation 
code into each function, including destructor functions. A finalize function 
will free memory resources after all work done. But I cannot find proper 
loacation calling my finalizing function since the destructor functions will 
called finally after the program exit. 
So i try to delete intrumentation on destructor functions , but i find the it 
is difficult to find all the destructor functions and functions called by 
destuctor functions.
Any idea to solve the problem?

Reply via email to