我是靠谱客的博主 瘦瘦紫菜,最近开发中收集的这篇文章主要介绍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 backtrace所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部