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

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

    As Matthew Talbert pointed out, this happens when GDB built with the native MinGW toolchain is used inside MSYS/Cygwin. Starting GDB with winpty worked like a charm as it's a tool designed just for that. It also worked for cdb.exe.

提交回复
热议问题