Listing 8: Breakpoint information in the GDB Debugger xterm.
清单8:gdb调试器xterm中的断点信息。
Two important GDB Debugger commands are list and disassemble.
有两个重要的gdb调试工具命令,它们分别是list和disassemble。
The GDB Debugger can also attach itself to a currently running process and help you to dig even deeper.
GDB调试工具本身也可以附加于一个正在运行的进程,并帮助您进行更深入的研究。
Notice that you're telling the GDB Debugger to quit debugging a program that is still active in memory.
请注意,您正告诉gdb调试工具停止对一个仍在内存中活动的程序的调试。
The GDB Debugger is such a useful tool that a lot of information about it is available on the Internet.
gdb调试工具非常有用,Internet上提供了大量的有关该工具的可用信息。
As always, you can learn a lot about tools, such as strace and the GDB Debugger, from their man and info pages.
和平常一样,您可以通过其man和info页面来了解各种各样的工具,如strace和gdb调试工具。
The -quiet option tells the GDB Debugger to display only its prompt and not all the other startup information that it typically displays.
quiet选项告诉gdb调试工具仅显示其提示符,而不要显示所有其他的启动信息。
While refreshing the browser page, you should see breakpoint information, such as that shown in Listing 11, scrolling in the GDB Debugger xterm.
在刷新浏览器页面的同时,您应该看到如清单11所示的断点信息,在gdb调试工具xterm中滚动输出。
UNIX actually encourages you to explore and learn by providing tools, such as strace and the GDB Debugger, as well as a wealth of information in the man and info pages.
实际上,UNIX通过提供各种工具,如strace和gdb调试工具以及包含在相应的man和info页面中的大量的信息,鼓励您对系统进行研究和学习。
So, while nweb is still running in another xterm session, halt the strace by pressing Ctrl + c, and then launch the GDB Debugger by typing the commands shown in Listing 5.
因此,在nweb运行于另一个xterm会话的同时,按下Ctrl +c停止strace,然后输入清单5中所示的命令启动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调试工具对其进行调试,您将在以后用到该调试工具。
应用推荐