ddd
Posted kevinren
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ddd相关的知识,希望对你有一定的参考价值。
一般来说,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的主要内容,如果未能解决你的问题,请参考以下文章