From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3002 invoked by alias); 5 Apr 2003 13:20:39 -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 2994 invoked from network); 5 Apr 2003 13:20:38 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 5 Apr 2003 13:20:38 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 767F52B23; Sat, 5 Apr 2003 08:20:34 -0500 (EST) Message-ID: <3E8ED822.8030007@redhat.com> Date: Sat, 05 Apr 2003 13:20:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stephane Carrez Cc: Daniel Jacobowitz , Michael Elizabeth Chastain , 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> <3E8DF9B9.4070709@nerim.fr> <20030404222839.GA18941@nevyn.them.org> <3E8EB3F4.8040109@nerim.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00077.txt.bz2 It just needs a tweak vis: > - -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile:46\[\r\n\]+46\[\t \]+void marker4.*" { > - # marker4() is defined at line 46 when compiled with -DPROTOTYPES > - pass "run until breakpoint set at small function, optimized file" > - } and that works just fine. The problem you encountered is just a weird querk of tcl. Since `#' is a command, and not a comment, it can only be used where other commands can be used. Andrew