The Science of Debugging
Chapter 6


6.3 Stopping Gdb


To exit gdb, you must interrupt the program you're debugging if one is running (typing control-c at the console usually does it; see the next section). and then type 'quit'. Sometimes you may get a message asking if you want to kill the program (as it's execution is merely suspended), such as below - simply answer yes and you'll be allowed to exit it.

(gdb) quit
The program is running. Exit anyway? (y or n) y
>





(Program has exited)
...and you're out.



Index
6.2 Starting Gdb . 6.4 Examination