Note: the -ggdb option in this example differs from Nigel's article in that it tells the GNU Compiler Collection (GCC) to optimize the program for debugging with GDB.
注意:此示例中的- ggdb选项与Nigel文章中所述的选项不同,因为它告诉gnu编译器集(GCC)优化该程序,以便于使用gdb来进行调试。
The set of build and debug tool chain integrations grows with a cleaner MinGW integration, a GDB hardware debugging integration, and a new integration for IBM's xlC compiler.
构建和调试工具链整合集将随着更干净的MinGW整合、GDB硬件调试整合和针对IBM的xlC 编译器的新整合而壮大。
After opening the emacs editor, load GDB with the kernel.debug image that you want to debug, with the -k option for kernel debugging.
打开emacs编辑器之后,使用您希望调试的kernel. debug映像加载gdb,并且使用- k选项进行内核调试。
Naturally, these are available, along with kernel-level debugging tools common to Linux such as GDB.
自然,这些以及gdb等Linux中常见的内核级调试工具都是可用的。
Now that we're finished debugging, GDB can be exited with the 'quit' command.
现在已完成了调试,可以使用'quit'命令退出gdb。
Gdb allows you to run shell commands without exiting the debugging environment with the shell command, invoked as' shell [commandline] ', useful for making changes to source code whilst debugging.
gdb可以让您通过使用shell命令在不退出调试环境的情况下运行shell命令,调用形式是' shell [commandline] ',这有助于在调试时更改源代码。
In addition to debugging with core files or programs, GDB can attach to an already running process (who's program has debugging information compiled in) and break into it.
除了调试core文件或程序之外,gdb还可以连接到已经运行的进程(它的程序已经过编译,并加入了调试信息),并中断该进程。
Note: The -ggdb option in Listing 2 differs from Nigel's article in that it tells the GCC compiler to optimize the program for debugging with the GDB Debugger, which you'll use later.
注意:清单2 中的 -ggdb选项和Nigel的文章中的内容有些不同,该选项用于告诉GCC编译器对该程序进行优化,以便使用 GDB调试工具对其进行调试,您将在以后用到该调试工具。
Note: The -ggdb option in Listing 2 differs from Nigel's article in that it tells the GCC compiler to optimize the program for debugging with the GDB Debugger, which you'll use later.
注意:清单2 中的 -ggdb选项和Nigel的文章中的内容有些不同,该选项用于告诉GCC编译器对该程序进行优化,以便使用 GDB调试工具对其进行调试,您将在以后用到该调试工具。
应用推荐