GDB: Ctrl+C doesn't interrupt process as it usually does but rather terminates the program

前端 未结 5 1800
南旧
南旧 2020-12-05 02:05

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

5条回答
  •  独厮守ぢ
    2020-12-05 02:52

    You can change GDB's input/output target using the following command:

    gdb -tty = /dev/tty1
    

提交回复
热议问题