From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70702 invoked by alias); 10 Sep 2015 07:49:33 -0000 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 Received: (qmail 70689 invoked by uid 89); 10 Sep 2015 07:49:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mga01.intel.com Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 Sep 2015 07:49:31 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 10 Sep 2015 00:49:29 -0700 X-ExtLoop1: 1 Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga002.fm.intel.com with ESMTP; 10 Sep 2015 00:49:28 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.201]) by IRSMSX153.ger.corp.intel.com ([169.254.9.13]) with mapi id 14.03.0224.002; Thu, 10 Sep 2015 08:47:42 +0100 From: "Metzger, Markus T" To: Pedro Alves CC: "gdb-patches@sourceware.org" Subject: RE: [PATCH 13/17] btrace: non-stop Date: Thu, 10 Sep 2015 07:49:00 -0000 Message-ID: References: <1441794909-32718-1-git-send-email-markus.t.metzger@intel.com> <1441794909-32718-14-git-send-email-markus.t.metzger@intel.com> <55F01DEC.4030209@redhat.com> <55F03852.7030200@redhat.com> <55F04765.9020206@redhat.com> In-Reply-To: <55F04765.9020206@redhat.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00149.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] On Behalf Of Pedro Alves > Sent: Wednesday, September 9, 2015 4:51 PM > To: Metzger, Markus T > Cc: gdb-patches@sourceware.org > Subject: Re: [PATCH 13/17] btrace: non-stop >=20 > On 09/09/2015 03:08 PM, Metzger, Markus T wrote: >=20 > >>> > >>> Wouldn't the 1st or 2nd pattern skip any $gdb_prompt before the > pattern? > >> > >> Yes. Is that a problem? Don't we always get another prompt after that > >> error? > > > > No, we don't. We have a single prompt that appears somewhere in the > output. > > > > (gdb) thread apply all continue >=20 > That seems to be root of the problem. That'll do a synchronous > continue on each thread, one by one. I think that what you want > is instead: >=20 > (gdb) thread apply all continue& >=20 > And that way you get a single prompt before any breakpoint is hit. That seems to be the case. I'm still getting the error I'm checking for be= fore the prompt, though, and my test will run into a timeout. thread apply all reverse-stepi 4 & =09 Thread 2 (Thread 0x7ffff74fb700 (LWP 70895)): =09 Thread 1 (Thread 0x7ffff7fcc740 (LWP 70891)): Cannot execute this command while the selected thread is running. (gdb) PASS: gdb.btrace/non-stop.exp: reverse-step: all: thread apply all r= everse-stepi 4: prompt 0x0000000000400671 28 for (; i < 10; ++i) global +=3D i; /* lo= op */ PASS: gdb.btrace/non-stop.exp: reverse-step: all: thread apply all reverse= -stepi 4: thread 0 FAIL: gdb.btrace/non-stop.exp: reverse-step: all: thread apply all reverse= -stepi 4: thread 1 (timeout) A failing run might take a bit longer, but that should be it. I changed the test, removed the "Cannot execute ..." check, and pushed the series into users/mmetzger/btrace-non-stop. Regards, Markus. Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul Chairperson of the Supervisory Board: Tiffany Doon Silva Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928