例如,您可以运行程序,设置界限,监视与服务进入中断点,通过程序指示的步骤,检查变量,并检查访问栈。
For example, you can run programs, set line, watch and service entry breakpoints, step through program instructions, examine variables, and examine the call stack.
这种情况下,gdb会获得控制并中断程序,从而可以让您检查所有事物的状态,如果运气好的话,可以找出原因。
In this case GDB will take control and interrupt the program, allowing you to examine the state of everything and hopefully find out why. To provoke this scenario we'll use an example program.
请注意,停止程序执行与串行中断期权不得检查,如果你的目标程序使用的串行端口。
Note that the Stop program Execution with serial Interrupt Option must not be checked if your target program USES the serial port.
应用推荐