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
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.