Re: detecting function calls
Originally Posted by
IAMTubby
Hey,
Is there a way to know what functions were called by a program during it's execution ?
Say, I have a code, as follows
Code:
#include <stdio.h>
int main(void)
{
fun1();
fun2();
fun3();
return 0;
}
int fun1(){}
int fun2(){fun2_1();}
int fun3(){}
int fun2_1(){}
Here, the output should be something like
Functions called are as follows
fun1()
fun2()
fun2_1()
fun3()
Is there an option on gcc for this ?
simple one , how about placing a printf line ?
Dont miss anything even it is small. one small pin is enough to bring down a man.
Bookmarks