From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29910 invoked by alias); 22 Aug 2008 02:47:43 -0000 Received: (qmail 29899 invoked by uid 22791); 22 Aug 2008 02:47:42 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Aug 2008 02:47:03 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 72407981E9; Fri, 22 Aug 2008 02:47:01 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 25AE49809F; Fri, 22 Aug 2008 02:47:00 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KWMfz-0003Pz-Tw; Thu, 21 Aug 2008 22:46:59 -0400 Date: Fri, 22 Aug 2008 02:47:00 -0000 From: Daniel Jacobowitz To: Thiago Jung Bauermann Cc: gdb-patches ml Subject: Re: [rfc] add ppc testcase to test fpscr Message-ID: <20080822024659.GA12951@caradoc.them.org> Mail-Followup-To: Thiago Jung Bauermann , gdb-patches ml References: <1219360611.8989.6.camel@localhost.localdomain> <20080821233115.GA1239@caradoc.them.org> <1219362081.29526.2.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1219362081.29526.2.camel@localhost.localdomain> User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2008-08/txt/msg00579.txt.bz2 On Thu, Aug 21, 2008 at 08:41:21PM -0300, Thiago Jung Bauermann wrote: > On Thu, 2008-08-21 at 19:31 -0400, Daniel Jacobowitz wrote: > > > Also, this adds the function gdb_send_cmd to lib/gdb.exp. More than once > > > I've wanted to send a commad to GDB and wait to get the prompt back > > > (because send_gdb is too fast and can create racy testcases). This > > > function scratches that itch. > > > > Isn't this just the same as gdb_test "command" "" "" ? > > Tried that, didn't work. Your command would check for: > > -re "\[\r\n\]*()\[\r\n\]+$gdb_prompt $" > > Which apparently is not good... > > I admit I didn't look that much into it. I'd have to see more details - the example I gave is used all over the testsuite. e.g. find.exp, restore.exp, setshow.exp. -- Daniel Jacobowitz CodeSourcery