From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5924 invoked by alias); 6 Jan 2003 21:12:57 -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 5903 invoked from network); 6 Jan 2003 21:12:56 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by 209.249.29.67 with SMTP; 6 Jan 2003 21:12:56 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 805693D45; Mon, 6 Jan 2003 16:12:34 -0500 (EST) Message-ID: <3E19F142.4030203@redhat.com> Date: Mon, 06 Jan 2003 21:12:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com, Michael Elizabeth Chastain Subject: Re: RFC: gdb_test_multiple References: <20030104201600.GA26779@nevyn.them.org> <3E18501D.8050601@redhat.com> <20030105154234.GA1348@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00231.txt.bz2 > I want to think about this a little more anyway; as Michael mentioned, > I don't think it's recursion safe. I can't fix this syntax due to TCL > limitations, so it might become: > > gdb_test_multiple "break Foo::Bar" "breakpoint on Foo::Bar" \ > "Breakpoint at .*\[\r\n\]$gdb_prompt $" { pass $msg } \ > "Bang." { kfail "gdb/90211" $msg } > > Which isn't so bad, after all. I had some reason not to do it that way > but I can't remember what it was, now. What do you think of this > change? Which ever. My concern is with `$_gdb_message'. Knowing how to use that would have required a deep understanding of what the function gdb_test_multiple{} was doing. The above at least makes immediate sense to someone with little tcl/tk knowledge (read: average gdb developer :-). Andrew