From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25993 invoked by alias); 4 Apr 2003 22:29:00 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25986 invoked from network); 4 Apr 2003 22:29:00 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 4 Apr 2003 22:29:00 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 191Zfx-0004zL-00; Fri, 04 Apr 2003 16:28:45 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 191Zfr-0004vo-00; Fri, 04 Apr 2003 17:28:39 -0500 Date: Fri, 04 Apr 2003 22:29:00 -0000 From: Daniel Jacobowitz To: Stephane Carrez Cc: Michael Elizabeth Chastain , gdb-patches@sources.redhat.com Subject: Re: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with -DPROTOTYPES Message-ID: <20030404222839.GA18941@nevyn.them.org> Mail-Followup-To: Stephane Carrez , Michael Elizabeth Chastain , gdb-patches@sources.redhat.com References: <200304042041.h34Kf5627351@duracef.shout.net> <3E8DF9B9.4070709@nerim.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E8DF9B9.4070709@nerim.fr> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00072.txt.bz2 On Fri, Apr 04, 2003 at 11:31:37PM +0200, Stephane Carrez wrote: > Hi! > > Michael Elizabeth Chastain wrote: > >I could be wrong, but I don't think you can put comments in the > >middle of a gdb_expect block like this. > > > > + # marker4() is defined at line 46 when compiled with -DPROTOTYPES > > + -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at > > .*$srcfile:46\[\r\n\]+46\[\t \]+void marker4.*" { > > + pass "run until breakpoint set at small function, optimized file" > > + } > > > >I think you have to do this: > > > > -re "Breakpoint ... void marker.*" { > > # marker4() is defined at line 46 when compiled with -DPROTOTYPES > > pass "run until breakpoint set at small function, optimized file" > > } > > > >Michael C > > > > > I wasn't sure too.. > > But I verified that it worked before the commit... It may have worked, but Michael is right. It will parse the comment as a series of patterns and code blocks. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer