
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如何使用stabs overview The GNU C compiler compil...原创 2020-02-17 17:47:01 · 1437 阅读 · 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 · 224 阅读 · 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 · 1420 阅读 · 0 评论