1. attach: 用gdb调试一个正在运行中的进程
gdb <program> PID
2. br: 设置断点
br filename:line_num
br namespace::classname::func_name
3. n: 单步跳过 s: 单步进入
4. finish:执行到函数retun返回
5. list: 列出当前位置之后的10行代码;list line_number: 列出line_number之后的十行代码
6. bt(backtrace):列出调用栈
7. info locals:列出当前函数的局部变量
8. p var_:打印变量值
9. info breakpoints:列出所有断点
10. delete breakpoints:删除所有断点;delete breakpoints id:删除编号为id的断点;disable/enable breakpoints id:禁用/启用断点
11. break ... if ... 条件中断
33 redraw
34 dbget 0x2aad1379e170.name
35 *DBU*Micron*
36 dbDBUToMicrons 8456600
37 dbDBUToMicrons 3742650
38 selectNet mii1mdint_data_in
39 redraw
40 dbget 0x2aad1379e790.hInstTerms.pt
41 dbget 0x2aad1379e790.hInstTerms.term.shape
42 dbget 0x2aad1379e790.hInstTerms.pt "8456.6*"
43 dbget 0x2aad1379e790.hInstTerms.pt 8456.6
44 dbget 0x2aad1379e790.hInstTerms.name
45 history
46 dbGetNetByName mii1mdint_data_in
47 dbget 0x2aab88b49530.hNets.hInstTerms.name
48 addCustomBox aaa 8438.4 3742.6 8474.6 3763.4
49 redraw
50 dbGetHInstByName padring/pl_mii1mdint
51 dbget 0x2aab88b49530.hNets.hTerms.hInst.name
posted on 2012-06-08 10:31
Klarke 阅读(1239)
评论(0) 编辑 收藏 引用