![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
debug
文章平均质量分 81
hfyinsdu
烂笔头--好记性不如烂笔头
展开
-
stabs: c语言如何使用stabs存放debug信息,以及如何使用stabs查找函数, stacktrace 如何实现
stabs 已经被 DWARF 替代......stabs是什么Stabs (Symbol Table String) refers to a format for information that describes a program to a debugger.GNU C compiler如何使用stabsoverviewThe GNU C compiler compil...原创 2020-02-17 17:47:01 · 1244 阅读 · 0 评论 -
gdb basic commands
finish: Continue running until just after function in the selected stack frame returns. Print the returned value (if any). This command can be abbreviated as fin.clear function/clear filename:functi...转载 2020-01-21 13:10:40 · 174 阅读 · 0 评论 -
重定向运行中的程序的fd(文件描述符)
原文:Changing a process' file descriptor on the fly背景debug产品中的一个程序,发现debug信息都没有显示出来,查看了/proc/<pid>/fd发现stdout/stderr都重定向到了/dev/null。由于重定向并不是这个进程本身的行为,并且不方便重启这个进程,所以考虑重定向到新的位置。解决方案使用gdb的功能。大概的过程是,a...转载 2018-07-16 16:18:41 · 1324 阅读 · 0 评论