This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sending CTRL-C to Cygwin gdb 6.8 has no effect


On Monday 26 April 2010 14:21:47, John Cortell wrote:
>  I'm extremely happy to report that avoiding the 'kill' and going with GenerateConsoleCtrlEvent(CTRL_C_EVENT) works. No tweaking via the 'set' commands is even needed. So, it looks like our problems are over.

Great.

I think we may still have problems with "run" and GUI apps
(IMAGE_SUBSYSTEM_WINDOWS_GUI subsystem) that don't have a console
at all.  I haven't tried this in a while, but I think a console
ctrl-c event won't make it to the inferior, and GDB doesn't know to
resort automatically to some other means, like DebugBreakProcess.  Attaching
or setting "set new-console on" should help in this case.
I'd be happy to be proven wrong, though.  :-)

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]