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

后端 未结 8 1135
灰色年华
灰色年华 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:19

    I had the same problem. What solved it for me was using gdb with cmd.exe and setting the following option in gdb.

    set new-console on
    

    Now I can use Ctrl + c to interrupt both gui and console programs.

提交回复
热议问题