From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20254 invoked by alias); 20 Aug 2007 19:31:43 -0000 Received: (qmail 20204 invoked by uid 22791); 20 Aug 2007 19:31:41 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 20 Aug 2007 19:31:32 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5DBAF980C0; Mon, 20 Aug 2007 19:31:32 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 17642980BF; Mon, 20 Aug 2007 19:31:32 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1INCyH-0004W8-0I; Mon, 20 Aug 2007 15:31:29 -0400 Date: Mon, 20 Aug 2007 19:31:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Roland.Puntaier@br-automation.com, gdb@sourceware.org Subject: Re: gdb-6.6 mingw port hangs after Ctrl-C Message-ID: <20070820193128.GA17272@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , Roland.Puntaier@br-automation.com, gdb@sourceware.org References: <20070820162439.GA30242@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00144.txt.bz2 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