A backtrace is a summary of how your program got where it is.
It shows one line per frame,
for many frames, starting with the currently executing frame (frame zero),
followed by its caller (frame one), and on up the stack.
In a multi-threaded program, GDB by default shows the backtrace only for the current thread.
To display the backtrace for several or all of the threads, use the command thread apply (see thread apply).
For example, if you type thread apply all backtrace, GDB will display the backtrace for all the threads;
this is handy when you debug a core dump of a multi-threaded program.
最后
以上就是瘦瘦紫菜最近收集整理的关于gdb backtrace的全部内容,更多相关gdb内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复