I am using gnu tool chain. How can I, at run time, find caller of a function? i.e for example function B() gets called by many functions using function pointers. Now, whenever B
If you're using GNU, you can use the backtrace functions. There's an example of the use on that man page.