From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25638 invoked by alias); 26 Oct 2009 11:30:23 -0000 Received: (qmail 25625 invoked by uid 22791); 26 Oct 2009 11:30:22 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Oct 2009 11:30:17 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N2Nm8-0006rN-J3 for gdb@sources.redhat.com; Mon, 26 Oct 2009 12:30:12 +0100 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Oct 2009 12:30:12 +0100 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Oct 2009 12:30:12 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Breakpoint commands Date: Mon, 26 Oct 2009 13:15:00 -0000 Message-ID: References: <83iqe4g9t2.fsf@gnu.org> <200910241704.00548.pedro@codesourcery.com> <83hbtog3fv.fsf@gnu.org> <8ac60eac0910241229g44d8d657ve8f888f1a606790b@mail.gmail.com> <20091026095900.GB24532@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00376.txt.bz2 Joel Brobecker wrote: >> It's probably not too difficult to implement "if you encounter any >> other breakpoint with its own command list while executing the >> original command list, the original command list is abandoned" policy. >> I'll open a feature request unless somebody explains why this would be >> a bad idea. > > I think it would indeed be a big improvement. I was hoping that the issue > would go away with python support, but anyone who learnt about this behavior > was surprised and found the argument to be very weak. I'd like to mention this is not the only case where GDB abandons something when hitting something else. E.g. if you have solib events enabled, and do next and solib is loaded, the "next" operation is aborted, and you're stuck in the middle of nowhere with no chance for a frontend to do anything. It would be nice of infrun be rewritten to use a proper state machine, permitting nesting. - Volodya