title: Terminate program hitting CTRL+C within GDB
body: <p>My program is determined to stop its execution by hitting <kbd>CTRL</kbd>+<kbd>C</kbd> in command window. By now, I have a critical error right in this stopping phase, so i want to debug with gdb.</p>
  
  <p>Problem is, gdb redefines <kbd>CTRL</kbd>+<kbd>C</kbd> as its own interrupt and pauses the execution when hitted. How can I handle it that <kbd>CTRL</kbd>+<kbd>C</kbd> powers my programm off and gdb can catch the stack trace?</p>