From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17394 invoked by alias); 12 Aug 2011 15:07:38 -0000 Received: (qmail 17384 invoked by uid 22791); 12 Aug 2011 15:07:37 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-yi0-f41.google.com (HELO mail-yi0-f41.google.com) (209.85.218.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Aug 2011 15:07:21 +0000 Received: by yib2 with SMTP id 2so2237326yib.0 for ; Fri, 12 Aug 2011 08:07:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.125.196 with SMTP id z44mr3115312yhh.232.1313161640465; Fri, 12 Aug 2011 08:07:20 -0700 (PDT) Received: by 10.236.34.193 with HTTP; Fri, 12 Aug 2011 08:07:20 -0700 (PDT) In-Reply-To: <201108121544.09810.pedro@codesourcery.com> References: <201108121544.09810.pedro@codesourcery.com> Date: Fri, 12 Aug 2011 15:07:00 -0000 Message-ID: Subject: Re: [patch] python prompt additions at first prompt. From: Matt Rice To: Pedro Alves Cc: gdb-patches@sourceware.org, Tom Tromey Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2011-08/txt/msg00247.txt.bz2 On Fri, Aug 12, 2011 at 7:44 AM, Pedro Alves wrote: > On Friday 12 August 2011 14:10:17, Matt Rice wrote: >> it seems clearer to return early in all sync_execution cases, and >> limit the potential for introducing the double prompting type of bug. >> I haven't been able to find any problems with this approach. > > I think this breaks the pagination prompt in async mode. =A0Try setting > a breakpoint in a loop, with a command list that just continues: > > (gdb) b inloop > (gdb) commands > Type commands for breakpoint(s) 2, one per line. > End with a line saying just "end". >>c >>end > (gdb) c Yeah it does, thank you for pointing this out.