From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105541 invoked by alias); 13 Oct 2016 22:55:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 105426 invoked by uid 89); 13 Oct 2016 22:55:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=2016-10-14, 20161014, Rosin, rosin X-HELO: mail.lysator.liu.se Received: from mail.lysator.liu.se (HELO mail.lysator.liu.se) (130.236.254.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Oct 2016 22:55:18 +0000 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 98E2E40021 for ; Fri, 14 Oct 2016 00:55:15 +0200 (CEST) Received: from [192.168.0.125] (217-210-101-82-no95.business.telia.com [217.210.101.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 289A840002 for ; Fri, 14 Oct 2016 00:55:15 +0200 (CEST) Subject: Re: Cygwin shell eats Windows exceptions? To: cygwin@cygwin.com References: <2e88aba8-6214-4bef-b248-cc7809afea4a@lysator.liu.se> From: Peter Rosin Message-ID: Date: Fri, 14 Oct 2016 10:52:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <2e88aba8-6214-4bef-b248-cc7809afea4a@lysator.liu.se> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-10/txt/msg00187.txt.bz2 On 2016-10-14 00:52, Peter Rosin wrote: > On 2016-10-13 16:35, Bill Smith wrote: >> Hi, >> I'm trying to run my Windows C++ application which has a call to DebugBreak() to bring up the popup asking if you want to debug this application or terminate it. If I run the program within Cygwin, the program just exits. >> >> If I run the application from a Windows command prompt, I get the Windows popup that I'm expecting. It seems that the Cygwin shell is eating exceptions (sigsegv or similar signals?). Is there a way for me to disable this behavior? > > I believe you want the reverse of this program: > > https://github.com/msysgit/msys/blob/master/winsup/utils/error-mode.c > > error-mode can make the popups go away (getting cygwin behavior > on msys), but it should be possible to modify it to make the > popup appear instead. I think... feeep, should have read my old code before I posted. The program should fit the bill. My memory is apparently bad but short. Sorry for the noise. Cheers, Peter -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple