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 assert like macro from inside application. Gdb gives detailed stack trace which is highly complicated to achive "by hand":
How it can be done?