From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27467 invoked by alias); 6 Jul 2006 16:23:53 -0000 Received: (qmail 27455 invoked by uid 22791); 6 Jul 2006 16:23:52 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 06 Jul 2006 16:23:51 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FyWdp-0006QV-EP; Thu, 06 Jul 2006 12:23:49 -0400 Date: Thu, 06 Jul 2006 16:23:00 -0000 From: Daniel Jacobowitz To: Andrew STUBBS Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Fix segfault on empty else Message-ID: <20060706162349.GA24631@nevyn.them.org> Mail-Followup-To: Andrew STUBBS , gdb-patches@sourceware.org References: <44980741.4040404@st.com> <20060620201752.GA1453@nevyn.them.org> <4499247B.7050404@st.com> <20060706133044.GC18827@nevyn.them.org> <44AD37E6.5050705@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44AD37E6.5050705@st.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00038.txt.bz2 On Thu, Jul 06, 2006 at 05:18:46PM +0100, Andrew STUBBS wrote: > # with true condition > if {[gdb_test_multiple "if 1\nend\necho got here\\n" "if 1 with empty body" { > -re ".*got here.*$gdb_prompt $" {pass "if 1 with empty body"} > }] != 0} { > gdb_exit > gdb_start > } Does this work better? set message "if 1 with empty body" gdb_test_multiple "if 1\nend\necho got here\n" $message { -re "got here.*$gdb_prompt $" { pass $message } eof { fail $message gdb_exit gdb_start } } -- Daniel Jacobowitz CodeSourcery