From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25133 invoked by alias); 5 May 2008 12:58:59 -0000 Received: (qmail 25122 invoked by uid 22791); 5 May 2008 12:58:58 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 May 2008 12:58:39 +0000 Received: (qmail 30738 invoked from network); 5 May 2008 12:58:37 -0000 Received: from unknown (HELO guest-246.lvknet) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 5 May 2008 12:58:37 -0000 From: Vladimir Prus To: Daniel Jacobowitz Subject: Re: [RFA] bpstat_do_actions in one place Date: Mon, 05 May 2008 13:10:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: gdb-patches@sources.redhat.com References: <200804242002.03590.vladimir@codesourcery.com> <200805051304.05449.vladimir@codesourcery.com> <20080505114824.GB22274@caradoc.them.org> In-Reply-To: <20080505114824.GB22274@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805051658.32272.vladimir@codesourcery.com> 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/msg00202.txt.bz2 On Monday 05 May 2008 15:48:24 Daniel Jacobowitz wrote: > On Mon, May 05, 2008 at 01:04:05PM +0400, Vladimir Prus wrote: > > In fact, things will go bad. I've checked in the following version of the > > patch that uses RETURN_MASK_ALL. > > RETURN_MASK_ALL is almost never a good idea. Quit will now not quit > all the way back to a prompt. Is that really what we want either? Well, this was the behaviour I though to be the most reasonable. > For instance, a program running in a while (1) loop with a breakpoint > set in it, and the breakpoint has a command that produces output, like > backtrace. Quit will now resume the program and generate another > backtrace, I think. Yes, I think so; seems fine to me. Is there any documentation for how 'quit' should generally work, especially inside breakpoint commands? - Volodya