From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3846 invoked by alias); 26 Feb 2004 17:04:18 -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 3831 invoked from network); 26 Feb 2004 17:04:16 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 26 Feb 2004 17:04:16 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AwOvk-0001jH-8R; Thu, 26 Feb 2004 12:04:12 -0500 Date: Thu, 26 Feb 2004 17:04:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Joel Brobecker , Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA/RFC] QUIT doesn't seem to be working !? Message-ID: <20040226170412.GA3770@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Joel Brobecker , Elena Zannoni , gdb-patches@sources.redhat.com References: <20030812222211.GC923@gnat.com> <16435.52781.747628.886278@localhost.redhat.com> <40363249.4090607@gnu.org> <20040220170957.GE1713@gnat.com> <4036490E.9060700@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4036490E.9060700@gnu.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00762.txt.bz2 On Fri, Feb 20, 2004 at 12:51:10PM -0500, Andrew Cagney wrote: > >>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). Right - I think that the "when running" case is the only thing that's got high user visibility for our average user. Me, I run into the problem Joel is patching all the time. I just did five minutes ago. I mean to type (gdb) info addr to_offset and instead type (gdb) info var to_offset which sends GDB off into an expensive (5sec or so on this app) search. (gdb) info var to_offset ^C^C^Cdarnit ^C (gdb) Quit (gdb) Quit (gdb) Quit Undefined command: "darnit". Try "help". (gdb) Quit (gdb) > Just don't try this at home: > > (gdb) while 1 > end > > (but I suspect that's always been broken as well). Is there even a QUIT in that code path? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer