Chinaunix首页 | 论坛 | 博客
  • 博客访问: 447088
  • 博文数量: 191
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 172
  • 用 户 组: 普通用户
  • 注册时间: 2013-10-31 14:35
个人简介

没有时间把一件事情做好,却有时间把一件事情反复做!

文章分类

全部博文(191)

文章存档

2016年(2)

2015年(74)

2014年(111)

2013年(4)

我的朋友

分类: LINUX

2015-01-22 09:13:11

原文地址:在Emacs中使用GDB 作者:jiushen

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 查看所有被设置的断点信息
阅读(753) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~