Stopping

quit
Exit GDB.
CTL-c  
Interrupt command, or send to running process.