码迷,mamicode.com
首页 > 其他好文 > 详细

ddd

时间:2018-06-03 00:54:06      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:another   uri   out   条件   new   cti   定义   stop   bsp   

一般来说,GDB主要帮忙你完成下面四个方面的功能:

    1、启动你的程序,可以按照你的自定义的要求随心所欲的运行程序。
    2、可让被调试的程序在你所指定的调置的断点处停住。(断点可以是条件表达式)
    3、当程序被停住时,可以检查此时你的程序中所发生的事。
    4、动态的改变你程序的执行环境。

  GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:

(参考:Debugging with GDB https://sourceware.org/gdb/current/onlinedocs/gdb/

  • Start your program, specifying anything that might affect its behavior.
  • Make your program stop on specified conditions.
  • Examine what has happened, when your program has stopped.
  • Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.

 

ddd

标签:another   uri   out   条件   new   cti   定义   stop   bsp   

原文地址:https://www.cnblogs.com/kevinren/p/9127597.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!