From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4522 invoked by alias); 20 Feb 2004 17:51:17 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4512 invoked from network); 20 Feb 2004 17:51:17 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 20 Feb 2004 17:51:17 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9D4392B92; Fri, 20 Feb 2004 12:51:10 -0500 (EST) Message-ID: <4036490E.9060700@gnu.org> Date: Fri, 20 Feb 2004 17:51:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Joel Brobecker Cc: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA/RFC] QUIT doesn't seem to be working !? References: <20030812222211.GC923@gnat.com> <16435.52781.747628.886278@localhost.redhat.com> <40363249.4090607@gnu.org> <20040220170957.GE1713@gnat.com> In-Reply-To: <20040220170957.GE1713@gnat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00562.txt.bz2 >>Yes. I did a quick user poll over lunch and everyone indicated that >>> contrl-c "works for me" (the sample included heavy java and C++ users!). > > > I am a bit surprised by this, because, as far as I can remember, I > couldn't understand how this feature could work (no offense meant, > just to say that it appeared that this functionality was not just > broken under certain circumstances, but instead was never working). So was I - a more exact quote of the response was "It's broken!?!?". It turns out that cntrl-c is being polled sufficiently often for people to not notice that there is a problem vis: (gdb) set height 2 (gdb) info frame Stack level 0, frame at 0x7fffe5c0: ---Type to continue, or q to quit---Quit > For me, Control-C is working when the debugger is waiting for an event > from the inferior. However, it is not working when the debugger is > busy inside a greedy loop (ie the QUIT macro does not abort the > loop). Just don't try this at home: (gdb) while 1 end (but I suspect that's always been broken as well). Andrew