From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78975 invoked by alias); 18 Dec 2015 18:23:00 -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 77081 invoked by uid 89); 18 Dec 2015 18:22:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Hx-languages-length:1145, Best X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 18 Dec 2015 18:22:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C39BC11684D; Fri, 18 Dec 2015 13:22:56 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0GOxwLSH5g3t; Fri, 18 Dec 2015 13:22:56 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 6BAFD1167C3; Fri, 18 Dec 2015 13:22:56 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 72005406CD; Fri, 18 Dec 2015 22:22:52 +0400 (RET) Date: Fri, 18 Dec 2015 18:23:00 -0000 From: Joel Brobecker To: Thomas Preud'homme Cc: gdb-patches@sourceware.org Subject: Re: [PATCH, ping1] Add missing expect for running a program with CLI jump Message-ID: <20151218182252.GF29928@adacore.com> References: <000101d13979$d1e0c610$75a25230$@foss.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000101d13979$d1e0c610$75a25230$@foss.arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-12/txt/msg00376.txt.bz2 > > 2015-10-15 Thomas Preud'homme > > > > * lib/mi-support.exp (mi_run_cmd_full): Add an expect for the CLI > > jump > > case. I think the patch is good, but your mailer did some line folding. Can you resend? Thanks! > > > > > > diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi- > > support.exp > > index 0d17ecb..cc055f6 100644 > > --- a/gdb/testsuite/lib/mi-support.exp > > +++ b/gdb/testsuite/lib/mi-support.exp > > @@ -886,6 +886,9 @@ proc mi_run_cmd_full {use_mi_command args} { > > # to better handle RUN. > > send_gdb "jump *$start\n" > > warning "Using CLI jump command, expect run-to-main FAIL" > > + gdb_expect { > > + -re "${run_match}&\"jump > > \\*${start}\\n\"\[\r\n\]+~\"Continuing at 0x\[0-9A-Fa- > > f\]+\\n.\"\[\r\n\]+\^running\[\r\n\]+\\*running,thread- > > id=\"\[^\"\]+\"\r\n${mi_gdb_prompt}" {} > > + } > > return 0 > > } > > > > > > With this patch applied, testsuite results become much more stable. > > > > Is this ok for the master branch? > > > > Best regards, > > > > Thomas > > > -- Joel