分类分类
关注+2011-07-12作者:清晨
4. 如何单步调试没有debugging information的函数?
由第2个问题,可知,可以通过stepi命令直接调试汇编代码。如使用GDB调试RB-tree的几个问题一文2.(4)所示。
stepi
stepi arg
si
Execute one machine instruction, then stop and return to the debugger.
It is often useful to do `display/i $pc' when stepping by machine instructions. This makes GDB automatically display the next instruction to be executed, each time your program stops. See section Automatic display.
An argument is a repeat count, as in step. (http://www.delorie.com/gnu/docs/gdb/gdb_38.html)
Reference
http://www.delorie.com/gnu/docs/gdb/gdb_38.html
objdump的manual页
nm的manual页
Technorati 标签: STL, RB-tree, 红黑树, GDB
相关文章
更多+相同厂商
热门推荐
点击查看更多
点击查看更多
点击查看更多
说两句网友评论