Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call Stack at Runtime

I want to access the call stack at runtime in a Native C++ application. I am not using the IDE. How do I display the call stack?

Update: I have a function which is called from many points all over the application. It crashes on rare occasions. I was looking for a way to get name of the caller and log it.

like image 966
Agnel Kurian Avatar asked Sep 24 '08 10:09

Agnel Kurian


1 Answers

Have a look at StackWalk64.

If you're used to doing this on .NET, then you're in for a nasty surprise.

like image 155
Will Dean Avatar answered Sep 28 '22 06:09

Will Dean