I want to track every way function calls. For instance,
int a()
{
b();
return 1;
}
void b()
{
}
int main()
{
int x=a();
return 0;
}
So my call trace is main-> a-> b So I want to track every set of call paths. I thought about the first search for depth. But I'm not sure how it will go. Can someone suggest me any specific method that will be implemented in perl? I will have a C program code file and a perl script will be run for it to get call traces.
source
share