我是靠谱客的博主 瘦瘦紫菜,这篇文章主要介绍gdb backtrace,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(49)

评论列表共有 0 条评论

立即
投稿
返回
顶部