Killing the Program
You can kill the process of the debugged program at any time using the Kill
button.
Killing the process is useful if you wish to debug a core dump instead of a running process. GDB ignores any core dump file while your program is running.
The Kill
button is also useful if you wish to recompile and relink your program, since on many systems it is impossible to modify an executable file while it is running in a process. In this case, when you next click on Run
, GDB notices that the file has changed, and reads the symbol table again (while trying to preserve your current debugger state).
Node:Examining Data, Next:Machine-Level Debugging, Previous:Running, Up:Top