GDB学习使用笔记

首先说明我使用的GDB版本及操作系统版本信息如下:

@localhost example]$ gdb -v
GNU gdb (GDB) 7.1-5 (Mandriva Linux release 2011.0)
Copyright (C) 2010 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 "x86_64-mandriva-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

GDB是GNU 的源码调试器。

Debugging with GDB
******************
This file describes GDB, the GNU symbolic debugger.
   This is the Ninth Edition, for GDB (GDB) Version 7.1-5 (Mandriva Linux release 2011.0).
   Copyright (C) 1988-2010 Free Software Foundation, Inc.
   This edition of the GDB manual is dedicated to the memory of Fred Fish.  Fred was a long-standing contributor to GDB and to Free software general.  We will miss him.

Fred Fish,原真主保佑他,关于他的生平可以在http://en.wikipedia.org/wiki/Fred_Fish了解一下。

http://www.sourceware.org/gdb/current/onlinedocs/gdb.html,这里有GDB最新版的文档,可以参考!


GDB简介:
**************
   调试器(比如象GDB)能让你观察另一个程序在执行时的内部活动,或程序出错时发生了什么。
   GDB主要能为你做四件事(包括为了完成这些事而附加的功能),帮助你找出程序中的错误。
   * 运行你的程序,设置所有的能影响程序运行的东西。
   * 保证你的程序在指定的条件下停止。
   * 当你程序停止时,让你检查发生了什么。
   * 改变你的程序。那样你可以试着修正某个bug引起的问题,然后继续查找另一个bug.

   你可以用GDB来调试C和C++写的程序。(参考 *C 和C++)





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值