In GDB on MinGW, how do I make Ctrl-C stop the program?

后端 未结 8 1023
灰色年华
灰色年华 2021-02-05 11:50

I\'m on Windows, running GDB on an executable built under MinGW. The program has an infinite loop. I want to find it by hitting Ctrl + C. When I do, both t

8条回答
  •  粉色の甜心
    2021-02-05 12:44

    This is because GDB doesn't handle the Ctrl + C event of the GUI (non-console) program properly.

    You can find the workaround in Workaround for GDB Ctrl-C Interrupt.

提交回复
热议问题