From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8278 invoked by alias); 20 Aug 2007 19:16:41 -0000 Received: (qmail 8134 invoked by uid 22791); 20 Aug 2007 19:16:40 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 20 Aug 2007 19:16:34 +0000 Received: from HOME-C4E4A596F7 ([81.5.36.68]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id IRP91574 (AUTH halo1); Mon, 20 Aug 2007 22:16:18 +0300 (IDT) Date: Mon, 20 Aug 2007 19:16:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: Roland.Puntaier@br-automation.com, gdb@sourceware.org In-reply-to: <20070820162439.GA30242@caradoc.them.org> (message from Daniel Jacobowitz on Mon, 20 Aug 2007 12:24:39 -0400) Subject: Re: gdb-6.6 mingw port hangs after Ctrl-C Reply-to: Eli Zaretskii References: <20070820162439.GA30242@caradoc.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00143.txt.bz2 > Date: Mon, 20 Aug 2007 12:24:39 -0400 > From: Daniel Jacobowitz > 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.