This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb-6.6 mingw port hangs after Ctrl-C
On Mon, Aug 20, 2007 at 10:16:12PM +0300, Eli Zaretskii wrote:
> 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.
Is there any way to force the other thread to longjmp? Otherwise,
just stopping it isn't enough - you don't have the right stack.
Erm, maybe it would work anyway... longjmping from one thread to
another scares me a bit, though.
--
Daniel Jacobowitz
CodeSourcery