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 >