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: gdb-6.6 mingw port hangs after Ctrl-C


> Date: Mon, 20 Aug 2007 12:24:39 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb@sourceware.org
> 
> Control-C handling on Windows is completely different from on
> POSIX operating systems, because the handler runs in a new thread
> instead of interrupting the main thread of execution.  This means
> that GDB's signal handling, which relies on longjmp, does not work.

The way to fix this is to make the signal handler stop the main thread
as the first thing it does.  Then you have a Posix-compliant program
again.  I did something similar for the MinGW port of GNU Make.


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