Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1309488
  • 博文数量: 268
  • 博客积分: 10698
  • 博客等级: 上将
  • 技术积分: 2867
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-14 22:21
文章分类

全部博文(268)

文章存档

2012年(19)

2011年(13)

2010年(29)

2009年(26)

2008年(99)

2007年(82)

我的朋友

分类: C/C++

2008-02-22 13:26:43

# gdb a.out
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".

(gdb) r
       ---------运行那个可执行文件
(gdb) r  -c data       ---------加参数运行
(gdb) b main   ---------在main处设断点
(gdb) n   ---------继续运行
(gdb) q ---------退出

阅读(1081) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~