![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
gdb
shenyan008
这个作者很懒,什么都没留下…
展开
-
7 Strace Examples to Debug the Execution of a Program in Linux
7 Strace Examples to Debug the Execution of a Program in Linuxby Balakrishnan Mariyappan onNovember 23, 2011Strace is a debugging tool that will help you troubleshoot issues.Strace monitor转载 2012-03-14 01:05:27 · 698 阅读 · 0 评论 -
GDB Session Restore 保存、恢复会话
GDB中如何保存当前会话?GDB没有直接的命令,但是,GDB可以保存当前会话的命令历史,然后加载的时候,导入命令文件,执行完命令文件中的命令,就可以恢复会话。保存一个会话,假设调试test,执行 gdb test 进入gdb:1. set history filename ~/.gdb_history # 设置~/.gdb_history为保存历史命令的文件2. set hist原创 2012-04-07 22:15:32 · 2139 阅读 · 0 评论 -
GNU GDB Debugger Command Cheat Sheet
GDB Command Line Arguments: Starting GDB: gdb name-of-executable gdb -e name-of-executable -c name-of-core-filegdb name-of-executable -pid process-id(Use ps -auxw to list process id's.)转载 2012-04-20 21:51:13 · 635 阅读 · 0 评论 -
Process Tracing Using Ptrace
Process Tracing Using PtraceBy Sandeep SThe ptrace system call is crucial to the working of debugger programs like gdb - yet its behaviour is not very well documented - unless you believe转载 2012-03-14 22:25:18 · 749 阅读 · 0 评论 -
Debugging a child process (fork 和 exec之后怎么做)
Debugging a child processOn most systems, GDB has no special support for debugging programs that create additional processes using thefork() function. By default, when a program forks, GDB转载 2012-11-26 03:38:30 · 1643 阅读 · 0 评论 -
The Art of Debbugging 笔记 (gdb)
gdb 选项: -tui,打开TUI模式,Ctrl-X-A返回non-TUI模式。 在TUI模式下,上下箭头,PgUp/PgDn 用于滚动代码,Crtl+P/N 用于查看历史命令; 断点显示在代码右侧,B+表示当前有效,B-表示disable了:gdb 命令:断点break: 2.4节;tbreak: temporary break,单次有效;del原创 2011-08-18 19:30:13 · 662 阅读 · 0 评论