From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22472 invoked by alias); 9 Apr 2007 10:10:11 -0000 Received: (qmail 22463 invoked by uid 22791); 9 Apr 2007 10:10:11 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Apr 2007 11:10:07 +0100 Received: from farnswood.snap.net.nz (164.61.255.123.dynamic.snap.net.nz [123.255.61.164]) by viper.snap.net.nz (Postfix) with ESMTP id 312DD3D8FF5; Mon, 9 Apr 2007 22:10:03 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 500) id 9ED2A627ED; Mon, 9 Apr 2007 11:07:28 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17946.4191.490689.438516@farnswood.snap.net.nz> Date: Mon, 09 Apr 2007 10:10:00 -0000 To: Denis PILAT Cc: gdb-patches Subject: Re: [RFA] gdb.mi/mi2-var-display.exp: fullname field testing In-Reply-To: <46163D31.7080803@st.com> References: <46163D31.7080803@st.com> X-Mailer: VM 7.19 under Emacs 22.0.97.2 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: 2007-04/txt/msg00065.txt.bz2 > # The running part has been checked already by mi_run_cmd > gdb_expect { > - -re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"$line_dct_end\"\}\r\n$mi_gdb_prompt$" { > + -re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$line_dct_end\"\}\r\n$mi_gdb_prompt$" { > pass "run to do_children_tests" I guess this didn't fail before because .* is greedy, and therefore matched up to the second var-cmd.c in the fullname field. It would be nice to use non-greedy expressions, normally .*?, but this don't seem to work with Dejagnu. -- Nick http://www.inet.net.nz/~nickrob