From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17811 invoked by alias); 7 May 2008 22:00:23 -0000 Received: (qmail 17798 invoked by uid 22791); 7 May 2008 22:00:22 -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; Wed, 07 May 2008 22:00:03 +0000 Received: from HOME-C4E4A596F7 ([83.130.255.47]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K0I007S0R421UC0@i_mtaout2.012.net.il> for gdb-patches@sources.redhat.com; Thu, 08 May 2008 01:14:26 +0300 (IDT) Date: Thu, 08 May 2008 11:34:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] bpstat_do_actions in one place In-reply-to: <20080507195024.GA14007@caradoc.them.org> X-012-Sender: halo1@inter.net.il To: Daniel Jacobowitz Cc: vladimir@codesourcery.com, gdb-patches@sources.redhat.com Reply-to: Eli Zaretskii Message-id: References: <20080505192315.GA19885@caradoc.them.org> <20080505194130.GA20958@caradoc.them.org> <20080506124322.GA12429@caradoc.them.org> <20080506183909.GA2696@caradoc.them.org> <20080507113736.GA32080@caradoc.them.org> <20080507195024.GA14007@caradoc.them.org> 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/msg00271.txt.bz2 > Date: Wed, 7 May 2008 15:50:24 -0400 > From: Daniel Jacobowitz > Cc: vladimir@codesourcery.com, gdb-patches@sources.redhat.com > > > > If that happened, how would you stop the example I gave? > > > > How would one stop _any_ endless loop? Ctrl-C, I guess. > > But it won't work. C-c is implemented as the exact same thing as > typing q at a pagination prompt: eventually a quit exception is > thrown. So you will only stop the currently printing backtrace and > things will keep on going. Another bug, I guess. We should be throwing to top level. And no, I don't think `q' should do the same as Ctrl-C.