程序调试工具 GDB 7.3a 发布

openkk 13年前
     <p>GDB(GNU symbolic debugger)简单地说就是一个调试工具。它是一个受通用公共许可证即GPL保护的自由软件。</p>    <p>象所有的调试器一样,GDB可以让你调试一个程序,包括让程序在你希望的地方停下,此时 你可以查看变量,寄存器,内存及堆栈。更进一步你可以修改变量及内存值。GDB是一个功能很强大的调试器,它可以调试多种语言。在此我们仅涉及C和C++ 的调试,而不包括其它语言。还有一点要说明的是,GDB是一个调试器,而不象VC一样是一个集成环境。你可以使用一些前端工具如XXGDB,DDD等。他 们都有图形化界面,因此使用更方便,但它们仅是GDB的一层外壳。因此,你仍应熟悉GDB命令。事实上,当你使用这些图形化界面时间较长时,你才会发现熟 悉GDB命令的重要性。下面我们将结合简单的例子,来介绍GDB的一些重要的常用命令。在你调试你的程序之前,当你编译你的源程序时,不要忘了-g选项或 其它相应的选项,才能将调试信息加到你要调试的程序中。例如:gcc -g -o hello hello.c 。<br /> <br /> 项目地址:<a href="/misc/goto?guid=4958187505812458674" target="_blank">http://www.gnu.org/software/gdb/</a><br /> <img title="程序调试工具 GDB 7.3a 发布" border="0" alt="程序调试工具 GDB 7.3a 发布" src="https://simg.open-open.com/show/9ed91067e027d411aa5dce1e123e5b5b.jpg" width="200" height="125" /><br /> </p>    <p><strong>Changes:</strong></p>    <p>1. GDB now understands thread names. <br /> 2. The commands "thread name" (to assign a name) and "thread find [REGEXP]" (matching name, target ID, or extra information) were added. <br /> 3. Python<span class="truncate_more"> scripting support was vastly enhanced. <br /> 4. In C++ support, exception handling was improved, and template parameters are now put in scope when debugging in an instantiation. <br /> 5. Thread debugging of core dumps on GNU/Linux is now possible. <br /> 6. Initial support for the OpenCL C language was introduced. <br /> 7. Many other enhancements were made</span></p>