博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助
   mash.cublog.cn
关于作者  
姓名:mystérieux

我的分类  




gdb的基本用法
# gdb a.out
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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
Starting program: /test/a.out

Program received signal SIGSEGV, Segmentation fault.
0xb7e92e67 in _IO_default_xsputn () from /lib/i686/cmov/libc.so.6
(gdb) b main
Breakpoint 1 at 0x80483e2
(gdb) n
Single stepping until exit from function _IO_default_xsputn,
which has no line number information.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) n
The program is not being run.
(gdb) q

 发表于: 2008-02-22,修改于: 2008-02-22 13:29 已浏览201次,有评论0条 推荐 投诉

  网友评论

  发表评论



Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们
页面生成时间:0.01473

京ICP证041476号