From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32005 invoked by alias); 4 Apr 2003 21:31:36 -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 31998 invoked from network); 4 Apr 2003 21:31:35 -0000 Received: from unknown (HELO mallaury.noc.nerim.net) (62.4.17.102) by sources.redhat.com with SMTP; 4 Apr 2003 21:31:35 -0000 Received: from nerim.fr (stcarrez.net1.nerim.net [62.212.108.40]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 2F4E862D1D; Fri, 4 Apr 2003 23:31:32 +0200 (CEST) Message-ID: <3E8DF9B9.4070709@nerim.fr> Date: Fri, 04 Apr 2003 21:31:00 -0000 From: Stephane Carrez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with -DPROTOTYPES References: <200304042041.h34Kf5627351@duracef.shout.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00070.txt.bz2 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... Stephane