Terminate program hitting CTRL+C within GDB
From the (gdb) prompt, type signal SIGINT. This will send (surprize) SIGINT to the program being debugged. Alternatively, handle SIGINT nostop print pass will make GDB pass the signal straight to the inferior (being debugged) process.