Normally when you run a program through GDB you can press Ctrl+C to interrupt it, e.g. if it gets stuck in an infinite loop and you want to get a backtrace.
I\'m deb
You can change GDB's input/output target using the following command:
gdb -tty = /dev/tty1