From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22950 invoked by alias); 1 Nov 2011 15:40:19 -0000 Received: (qmail 22941 invoked by uid 22791); 1 Nov 2011 15:40:17 -0000 X-SWARE-Spam-Status: No, hits=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Nov 2011 15:40:03 +0000 Received: by qadc11 with SMTP id c11so7001753qad.0 for ; Tue, 01 Nov 2011 08:40:03 -0700 (PDT) Received: by 10.224.215.130 with SMTP id he2mr15122194qab.55.1320162002926; Tue, 01 Nov 2011 08:40:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.215.130 with SMTP id he2mr15122171qab.55.1320162002741; Tue, 01 Nov 2011 08:40:02 -0700 (PDT) Received: by 10.224.6.76 with HTTP; Tue, 1 Nov 2011 08:40:02 -0700 (PDT) In-Reply-To: <20111027101544.GA5288@host1.jankratochvil.net> References: <20111027101544.GA5288@host1.jankratochvil.net> Date: Tue, 01 Nov 2011 15:40:00 -0000 Message-ID: Subject: Re: [patch] testsuite: MI: racy results in async mode (PR testsuite/12649) From: Doug Evans To: Jan Kratochvil Cc: gdb-patches@sourceware.org, Marek Polacek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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-11/txt/msg00011.txt.bz2 On Thu, Oct 27, 2011 at 3:15 AM, Jan Kratochvil wrote: > Hi, > > I was looking at some systematic-like regression but it was just a race a= gain. > > The fix is ugly but it cannot be done better before there is a generic MI > client parser deployed for the testsuite. What does "generic MI client parser" mean in this context? > $prompt_re is "" in this case, therefore the =3Dbreakpoint-deleted async > notification is randomly left or swallowed by the end of regex in > mi_expect_stop: > =A0 =A0 =A0 =A0-re "\\*stopped,${r}${a}${bn}frame=3D\{addr=3D\"$hex\",fun= c=3D\"$func\",args=3D$args,file=3D\"$any$file\",fullname=3D\"${fullname_syn= tax}$file\",line=3D\"($line)\"\}$after_stopped,thread-id=3D\"$decimal\",sto= pped-threads=3D$any\r\n($thread_selected_re|$breakpoint_re)*$prompt_re" { > > No regressions on {x86_64,x86_64-m32,i686}-fedora16pre-linux-gnu and with > gdbserver. > > I will check it in in some time.