From inside C++ application, I want to call gdb to print stack trace of the current thread only.
This can be used to get stack trace for a开发者_运维百科ssert like macro from inside application. Gdb gives detailed stack trace which is highly complicated to achive "by hand":
How it can be done?
精彩评论