I’m looking for a tool that will tell/resolve for every function all the call paths (call it “routes”) to it.
For example:
void deeper(int *pNumber)
{
*pNumber++;
}
void gateA(int *pNumber)
{
deeper(pNumber);
}
void gateB(int *pNumber)
{
gateA(pNumber);
}
void main()
{
int x = 123;
gateA(&x);
gateB(&x);
}
See?
I need a tool that will tell me all the routes to deeper(), and more if possible.
By saying “more” I mean that it will tell me if the pointer is the same as been provided to the calling function.
This will greatly save me time.
Thanks!
Doxygen will do that for you. It’ll draw you nice inheritance trees and show you everyone who is calling (and called by) your functions.