You can now call this method and interrupt execution at any point of the loop, capturing the state of the program.
现在,可以调用这个方法并在循环的任意位置中断执行,这会捕获程序的状态。
2
It may not be desirable even to interrupt the process while in this state since it may be in the middle of completing some important task.
中断处于这种状态的进程是不合适的,因为它可能正在完成某些重要的任务。
3
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.