From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5449 invoked by alias); 9 Mar 2005 06:05:02 -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 5309 invoked from network); 9 Mar 2005 06:04:48 -0000 Received: from unknown (HELO priv-edtnes27.telusplanet.net) (199.185.220.223) by sourceware.org with SMTP; 9 Mar 2005 06:04:48 -0000 Received: from takamaka.act-europe.fr ([142.179.108.108]) by priv-edtnes27.telusplanet.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050309060443.JIZF22209.priv-edtnes27.telusplanet.net@takamaka.act-europe.fr> for ; Tue, 8 Mar 2005 23:04:43 -0700 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 2BD7A47DC0; Tue, 8 Mar 2005 22:04:43 -0800 (PST) Date: Wed, 09 Mar 2005 06:05:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Re: [RFA/testsuite/dwarf2] testcase for duplicated psymtab Message-ID: <20050309060443.GH1156@adacore.com> References: <20050203145813.GL1147@adacore.com> <20050307194251.GA18170@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050307194251.GA18170@nevyn.them.org> User-Agent: Mutt/1.4i X-SW-Source: 2005-03/txt/msg00139.txt.bz2 > You should never end a regular expression with .*; it means that the > next match can get out of sync with the command stream. Anchor them > with $gdb_prompt $. > > And you don't need a "default" with gdb_test_multiple, either. > > OK with those changes. Thanks Daniel. Checked in. Below is the modified version of the gdb_test_multiple bit: gdb_test_multiple "info sources" "$test" { -re "file1\\.txt.*file1\\.txt.*$gdb_prompt $" { fail "$test (file1.txt seen more than once)" } -re "file1\\.txt.*$gdb_prompt $" { pass "$test" } } -- Joel