From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6734 invoked by alias); 10 May 2008 19:26:26 -0000 Received: (qmail 6723 invoked by uid 22791); 10 May 2008 19:26:26 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 10 May 2008 19:26:06 +0000 Received: from HOME-C4E4A596F7 ([83.130.255.47]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K0O00J7D3ZJ9D91@i_mtaout2.012.net.il> for gdb-patches@sourceware.org; Sat, 10 May 2008 22:40:32 +0300 (IDT) Date: Sun, 11 May 2008 13:46:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] control-c handling on Windows... In-reply-to: <20080510180010.GF28890@adacore.com> X-012-Sender: halo1@inter.net.il To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: References: <20080507205611.GB7421@adacore.com> <20080509202942.GA4386@ednor.casa.cgf.cx> <20080510013336.GC28890@adacore.com> <20080510043413.GA5429@ednor.casa.cgf.cx> <20080510153102.GE28890@adacore.com> <20080510180010.GF28890@adacore.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00344.txt.bz2 > Date: Sat, 10 May 2008 11:00:10 -0700 > From: Joel Brobecker > > void > quit (void) > { > #ifdef __MSDOS__ > /* No steenking SIGINT will ever be coming our way when the > program is resumed. Don't lie. */ > fatal ("Quit"); > #else > if (job_control > /* If there is no terminal switching for this target, then we can't > possibly get screwed by the lack of job control. */ > || current_target.to_terminal_ours == NULL) > fatal ("Quit"); > else > fatal ("Quit (expect signal SIGINT when the program is resumed)"); > #endif > } > > Not sure when __MSDOS__ is defined It's defined in the DJGPP build of GDB. This bogus "expect SIGINT" message was bugging me for years, until I #ifdef'ed it away.