GDB and DDD使用
RichardYSteven
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
gdb 调式汇编
使用disassemble命令 disassemble 默认反汇编当前函数。 disassemble function 反汇编某函数 disassemble /r function 显示命令的二进制编码 disassemble /m function 汇编代码和源代码一起显示 使用layout layout asm原创 2012-04-27 10:14:49 · 1136 阅读 · 0 评论 -
gdb的脚本使用 -- gdbinit
在使用gdb调试程序的时候,有时候需要设定多个断点,重复执行某些操作,而这些操作写起来比较麻烦,这个时候就应该想起来用gdb命令脚本了,它能够很好的完成这些工作。 以设置多个断点为例,我写的命令脚本为 --------------------------------------------------- #filename: .gdbinit #gdb will read it when原创 2011-01-24 21:18:00 · 9786 阅读 · 0 评论 -
GDB 基本使用
基本使用 断点 1.设置断点 b fuction_name 设在函数上 b file:line 设在文件的某一行 b Dlinklist::show 在某个模板类的方法上设置断点 b Dlinklist::show 在普通类的方法上设置断点 b func if var==value or b func condition 1原创 2013-03-21 16:44:47 · 1601 阅读 · 0 评论 -
gdb 重定向标准输出 -- 调试ncurse比较有用
默认情况下,程序的标准输出在gdb窗口。 有时候这样调试会比较麻烦。 gdb提供了重定向的方法。 4.1 GDB Start up GDB as usual in some text window. Then choose another window in which your curses application will run, and determine the de原创 2011-02-01 15:18:00 · 2977 阅读 · 0 评论 -
ddd 显示二维数组
<br />双击数组名称即可。<br /> <br />如果要显示为table,可设置如下。Arrays as Tables<br />By default, DDD lays out two-dimensional arrays as tables, such that all array elements are aligned with each other.27 To disable this feature, unset Edit => Preferences => Data =>原创 2010-09-27 21:29:00 · 1434 阅读 · 0 评论 -
GDB中 打印出链表的值
这个东东怎么弄? 回去网上查查原创 2010-07-21 09:56:00 · 5479 阅读 · 0 评论 -
How debugger works
http://www.alexonlinux.com/how-debugger-works 先藏着,以后学习。转载 2013-07-21 11:50:50 · 1477 阅读 · 0 评论
分享