注册 登录
编程论坛 Windows论坛

有谁能给我讲一下gdb 的用法

笑红尘 发布于 2005-04-19 19:01, 797 次点击
哪位能给我讲一下gdb的用法啊
3 回复
#2
笑红尘2005-04-20 11:14
没人顶
我自己顶
#3
wangshi2005-05-15 20:36
检视程序代码,格式计有: (gdb) list => 显示目前执行程序代码前后各五行的程序代码;或是显示从上次 list 之后的程序代码 (gdb) list function => 显示该程序开始处前后五行的程序代码。 (gdb) list - =>上次显示程序代码的前面的十行。 http://linuxsir.zahui.net/html/13/45731.htm
#4
wangshi2005-05-20 16:00
gdb 来进行调试所需的每个命令。 Command Description file load program b set breakpoint r run c continue s step (line) si step (machine instruction) n next (step over function call) finish run until function returns i r show all registers i r show specific register l list source p display value set args set command line arguments 参考网站:http://chinalinuxpub.com/read.htm?id=1392
1