Call Stack Trace

Brian McGrew brian@visionpro.com
Wed Sep 30 01:33:00 GMT 2009


Hi, Guys!

I need to take a look at a call stack, but without using gdb.  Is there a
macro or something similar to __FILE__ or __LINE__ that will tell me who
called the function that I'm in???

So if I have a function called foo() that gets called 100 different ways
from differnet shared libraries and executables, how can I find out who
called foo(), without gdb and without touching all my source code and
putting printf's???

Thanks!

-b



More information about the Gcc-help mailing list