Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1239264
  • 博文数量: 264
  • 博客积分: 10772
  • 博客等级: 上将
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-25 11:54
文章分类

全部博文(264)

文章存档

2012年(4)

2011年(51)

2010年(31)

2009年(57)

2008年(51)

2007年(70)

分类: LINUX

2007-08-15 16:23:28

M-x gdb
 
命令:
 
① C-x SPC 设置断点
② C-c C-s 执行到下一行,类似GDB的step命令;也会更新(源码)显示窗口,指示当前文件和执行位置。
③ C-c C-n 执行本函数内下一条源码行,越过(不进入)所有的函数调用,类似GDB next命令。并更新(源码)显示窗口,指示当前文件和执行位置。
④ C-c C-r 继续程序的执行,类似GDB continue命令。
⑤ C-c C-f runs execution to the return from the current function and stops.
⑥ C-x C-a C-d Delete the breakpoint(s) on the current source line, if any (gud-remove). If you use this command in the GUD interaction buffer, it applies to the line where the program last stopped.
⑦ info breakpoints 查看所有被设置的断点信息
阅读(1581) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~